From now on i will share my lesson notes when i learn Laravel Framework. Most notes i will write are commands and script modifications i did on my script, which might come in handy when I repeat the procedure again or you might want to use it later.
1. Start install Laravel
# Without Docker
composer create-project laravel/laravel example-app
cd example-app
php artisan serve
# With Docker (using Laravel Sail)
curl -s "https://laravel.build/example-app" | bash
# -- OR -- install mysql, redis & devcontainer too
curl -s "https://laravel.build/example-app?with=mysql,redis&devcontainer" | bash
cd example-app
./vendor/bin/sail up
2. Setup Laravel
With config file
I set my timezone and local in config/app.php
file
With environment file
I set my site or database profile within .env
file
Top comments (0)