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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |