Docker project for console php 8.1 projects with composer. Created from skeleton laravel 10.
Install Docker.
docker-compose up --build -d
docker exec -it octarine_app composer install
cp .env.example .env
docker exec -it octarine_app php artisan migrate
Route::post('/generate', 'RandomNumberController@generate');
Route::get('/retrieve/{id}', 'RandomNumberController@retrieve');