Last active
December 26, 2025 20:21
-
-
Save rabol/0f63f53b9257a6d5081035e9b906122a to your computer and use it in GitHub Desktop.
PhpStorm Junie with Laravel Boost test prompts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #### | |
| # create the base app like this: laravel new boost --git --livewire --pest --livewire-class-components --npm --boost | |
| # First prompt to create the roles | |
| I work with a Laravel 12 project, with the official Laravel Livewire Starter kit and have installed the spatie/laravel-permission package. | |
| Note that it is Laravel 12. | |
| Note that the Laravel Livewire Starter Kit uses FluxUI | |
| I'm using php v 8.3 - latest version | |
| Create a seeder with two roles: | |
| - "Administrator" | |
| - "Simple user" | |
| Make sure that the UserFactory set the following values to null: | |
| - two_factor_secret | |
| - two_factor_recovery_codes | |
| - two_factor_confirmed_at | |
| Update the Databaseseeder to call the new seeder | |
| In the Databaseseeder, create 2 users, "Administrator" and "Simple User" | |
| Create a seeder with such permissions: | |
| - Manage Roles: assign to Administrator only | |
| - Manage Tasks: typical policy permissions, assign all to "Administrator" and "Simple User" gets all permissions except deleting tasks | |
| Seed one "Administrator" and one "Simple User" | |
| Write Pest php test cases | |
| when finished run "php artisan migrate:fresh --seed" | |
| When finished run "php artisan test" and fix any errors. | |
| #prompt 2, create the cruds | |
| I work with a Laravel 12 project, with the official Laravel Livewire Starter kit and have installed the spatie/laravel-permission package. | |
| Note that it is Laravel 12. | |
| Note that the Laravel Livewire Starter Kit uses FluxUI | |
| I'm using php v 8.3 - latest version | |
| Create two CRUDs for Roles and Permissions, place them in the Dashboard navigation - sidebar. | |
| In Roles CRUDs, should have the possibility to select permissions for the Role using checkboxes. | |
| The Roles and Permissions CRUDs should only be visible for users with the role: Manage Roles | |
| For design, use FluxUI and if needed Tailwind CSS | |
| Write Pest php test cases for both CRUDs. | |
| when finished run "php artisan migrate:fresh --seed" | |
| When finished run "php artisan test" and fix any errors. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment