To install all php dependencies if you have not uploaded vendor
folder.
- To install and update Composer:
- composer install
- composer update
Usage Commands:
- Migrate Tables => php artisan migrate
- Seed Database => php artisan db:seed –class=InitDbSeeder
- Start Server => php artisan serve
- Watch Server => yarn watch or npm run watch
Other Commands
# Turn on maintenance mode
php artisan down
# Turn off maintenance mode
php artisan up
# Sync composer.local with composer.json
composer update –lock
# Create Model
php artisan make:model Flight
# Create Model & Migration
php artisan make:model Flight -m
# Create Migration
php artisan make:migration create_users_table –create=users
# Update Existing Migration
php artisan make:migration add_votes_to_users_table –table=users
# Create Controller
php artisan make:controller PhotoController
# Composer dump
composer dump-autoload
# Clear caches
php artisan cache:clear
# Clear and cache routes
php artisan route:clear
php artisan route:cache
# Clear and cache config
php artisan config:clear
php artisan config:cache