This is my preferred configuration and setup for Laravel when I’m trying to create a new app.
Prerequisites
Make sure PHP is installed following How to Install the Latest PHP with APT.
Setup Laravel
composer create-project laravel/laravel your-app-here
cd your-app-here
php artisan serve
After running your Artisan server, run bun dev
to start the frontend server. You’ll need to have php artisan serve
and bun dev
running at the same time for optimal local development.
Rendering
I like using functional Blade templates with Livewire
Testing
I’ve only ever used PHPUnit with Laravel, but I’ve used Pest with vanilla PHP and it’s been great. Either should work.
You can also setup User Authentication and Roles easily with Laravel.