How to work with database in Laravel

Framework
Laravel
Web Programming

How to work with database in Laravel

Steps: 1. Create a MySQL database 2. Open the .env file and set the database connection 3. Run the following command to set project namespace php artisan app:name todoparrot 4. Create a model named todolist using the following command php artisan make:model Todolist 5. Open the migration folder and delete all existing file 6. Run […]

Read More