Recently, I’ve finally started digging into Laravel 6.x. The simplicity and straightforward nature of the framework has been a welcome relief, although as such with any new framework, information can be piecemeal and scattered. After setting up a few sample projects, this is what I’ve come up with to scaffold and setup a simple Laravel application. Note that I use PHPStorm and Apache (via XAMPP).
# install composer and initialize the project composer global require laravel/installer laravel new myproject # install PHPStorm IDE helpers composer require barryvdh/laravel-ide-helper --dev # install laravelcollective HTML helpers composer require laravelcollective/html # configure your webserver and hosts file as needed (e.g. add a vhost entry and a fake domain name that points to it) # require UI components composer require laravel/ui --dev # install bootstrap php artisan ui bootstrap php artisan ui bootstrap --auth # if using authentication # generate the IDE helper classes for PHPStorm php artisan ide-helper:generate # install npm packages npm install # compile css and js assets (one-time) npm run dev