This file provides some guidance on best practice, tips and tricks for developing against LoadPartner TMS
The artisan command dev:refresh will clear your database and run the demo seeder to give you a test environment.
sail artisan dev:refresh
// or
php artisan dev:refresh
The following test user will be created
Email: [email protected]
Pass: password
This will run PHPStan and generate IDE completions for any actions.
sail artisan dev:check
- Add your new permission enum to
app/Enums/Permission.php
. Make sure you include an entry underlabel()
! - Create a new database migration, call it whatever you want. In the migration, run
App\Enums\Permission::syncToDatabase();
for both up and down. - Run migrations to add your new permissions to the database!
Ensure you have storage linked by running
sail artisan storage:link