Laravel Seeding and Migration of Database

Laravel Seeding and Migration of Database
Laravel Seeding and Migration of Database

Process:

  1. Download the project as zip file.
  2. Extract it to your desired destination
  3. Open Command prompt or console to the root directory of the project
  4. Run this command php artisan config:cache
  5. make sure to configure database on .env and config/database.php file
  6. Now run, php artisan migrate , this will migrate required tables for you
  7. Run php artisan db:seed to seed pre-defined data which containes login information
  8. See your admin username and password from database/seed/UserTableSeeder.php
  9. Make sure your root folder, storatge, bootstrap folder has read write permission.
  10. Now to run the local server run, php artisan serve
  11. While publishing on the net, set your public directory as the domain root directory