AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Laravel db text column1/30/2024 ![]() This branch is designated as a development branch to start, with the goal to move it to production after you make any necessary schema changes. Your database comes with one default branch, main. One of PlanetScale’s powerful features is the ability to create branches, similar to the Git model. This isn’t required, but it allows PlanetScale to track your Laravel migrations so that new database branches are automatically created with the latest migrations. While you're here, go to the " Settings" tab on your database, and click the checkbox next to " Automatically copy migration data", select " Laravel" from the dropdown, and click " Save database changes". Give it a name, select the region closest to you or your application, and click " Create database". Next you’ll be prompted to create a new database. Head over to PlanetScale to sign up for an account if you haven’t already. You can view your application at PlanetScale setup #īefore you dive into the code, let’s get your database set up. Terminal cd laravel-mood-tracker php artisan serve To install with Composer, make sure you have PHP and Composer installed on your machine. This tutorial will use the Composer installation method, but feel free to choose whichever method you prefer. There are several ways to install a new Laravel 9 application. Beginner Laravel knowledge - This tutorial uses Laravel v9.0.To run this tutorial, you will need the following: You can also find the final code for this application on GitHub if you'd prefer to just poke around. If you just want to get up and running with Laravel and PlanetScale, check out our Laravel quickstart instead. Deploy non-blocking schema changes from development to production with PlanetScale branching and deploy requests.Database migrations and a seeder to run on your development database.2 tables, moods and entries, to store your daily entries and mood options.2 database branches: main for production and dev for development. ![]()
0 Comments
Read More
Leave a Reply. |