( ! ) Don't follow this part if you want to initialize clonned part. Follow these steps only when you plan to create application from scratch. I just leve this part here to demonstrate what the steps I encountered.
See how Install PHP and the Laravel Installer before the init. Additional info about how to:
- Creating the Resource Controllers
- Supplementing the Resource Controllers
- Specifying the Resource Model
- Generating the Form Requests
- Creating the API Resource Routes
# install app
laravel new app
# link public storage
php artisan storage:link
# Create controllers, models, migrations, and seeders
php artisan make:model Genre --migration --seed --controller --resource --requests
php artisan make:model Movie --migration --seed --controller --resource --requests
# Create pivot model
php artisan make:model GenreMovie --migration --seed
# Create request for publishing a movie
php artisan make:request PublishMovieRequest
# Rise up migrations
php artisan migrate
# Create Views: Genres
php artisan make:view genres.index
php artisan make:view genres.create
php artisan make:view genres.edit
php artisan make:view genres.show
# Create Views: Movies
php artisan make:view movies.index
php artisan make:view movies.create
php artisan make:view movies.edit
php artisan make:view movies.show
# make API available
php artisan install:api
# Create controllers for the API
php artisan make:controller Api/V1/GenreController --api --model Genre
php artisan make:controller Api/V1/MovieController --api --model Movie
npm install
npm run build
# Use rollback if need
php artisan migrate:rollback
# clear cached routes
php artisan route:clear
# clear cached views
php artisan view:clear
# make available API
php artisan install:api
# For unix systems start:
./init
# For windows systems start:
init.cmd
php artisan serve
# or
composer run dev