This app places models in App\Models
.
https://medium.com/@codingcave/organizing-your-laravel-models-6b327db182f9
The docker setup is from this Digital Ocean blog post:
To build the project, run docker-compose up -d
Using locally installed composer:
composer install
or using Docker:
docker run --rm -v $(pwd):/app composer install
docker-compose exec app php artisan key:generate
docker-compose exec app php artisan config:cache
docker-compose exec app php artisan migrate
docker-compose exec app php artisan make:migration create_players_table
docker-compose exec app php artisan make:seeder TeamSeeder
docker-compose exec app php artisan db:seed --class=PositionSeeder
docker-compose exec app php artisan db:seed --class=TeamSeeder
docker-compose exec app php artisan db:seed --class=GameSeeder
or, to run all at once:
docker-compose exec app php artisan db:seed
docker-compose exec app php artisan make:model Player
docker-compose exec app php artisan make:command DeleteFiles
docker-compose exec app php artisan route:cache