Learn how to implement Laravel 11 Spatie user roles and permissions application
The complete tutorial step by step guide is available on my blog. AllPHPTricks Laravel 11 roles and permissions
Make sure that you have setup the environment properly. You will need minimum PHP 8.2, MySQL/MariaDB, composer and Node.js.
- Download the project (or clone using GIT)
- Copy
.env.example
into.env
and configure your database credentials - Go to the project's root directory using terminal window/command prompt
- Run
composer install
- Set the application key by running
php artisan key:generate --ansi
- Run migrations
php artisan migrate:fresh --seed
- Run
npm install
- Run
npm run build
to build assets - Start local server by executing
php artisan serve
- Visit here http://127.0.0.1:8000/login to test the application