Skip to content

Latest commit

 

History

History
executable file
·
62 lines (38 loc) · 1.15 KB

run.md

File metadata and controls

executable file
·
62 lines (38 loc) · 1.15 KB

Run

Run migrations

~/laravel-scaffold$ php artisan migrate

Run seeders

This seeder fill lists to database

~/laravel-scaffold$ php artisan db:seed

Run Faker Seeder optional

This seeder create 10 users to database

~/laravel-scaffold$ php artisan db:seed --class=FakerTableSeeder

!> If exist someting error run this command

~/laravel-scaffold$ composer dumpautoload

!> If you are in production environment change storage permmision

~/laravel-scaffold$ sudo chown -R www-data:www-data storage

Compiling Assets (Laravel Mix)

// Watching Assets For Changes
~/laravel-scaffold$ npm run watch

// Run all Mix tasks...
~/laravel-scaffold$ npm run dev

// Run all Mix tasks and minify output...
~/laravel-scaffold$ npm run production

Run serve

Local Development Server

If you have PHP installed locally and you would like to use PHP's built-in development server to serve your application, you may use the serve Artisan command. This command will start a development server at http://localhost:8000

~/laravel-scaffold$ php artisan serve