To run a Laravel application with Laravel Sail
Start Docker. Open Terminal and run:
./vendor/bin/sail up
To stop Laravel Sail
Control + C
Once Laravel Sail has stopped, you can quit Docker.
To run artisan commands
To run artisan commands like php artisan make:controller InvoiceController
, open a new tab in Terminal and run:
./vendor/bin/sail shell
Now you can run artisan commands.