- Downloads
feat: add slug field to prestations
- Added a 'slug' field to the prestations table with a migration. - Updated the Prestation model to include 'slug' in the fillable attributes. - Modified the PrestationController to require and handle the 'slug' input in create and update methods. - Updated frontend forms to include a slug input for prestations. - Adjusted tests to validate the presence of the slug in the prestation creation and update processes.
Showing
- app/Http/Controllers/Admin/PrestationController.php 6 additions, 0 deletionsapp/Http/Controllers/Admin/PrestationController.php
- app/Models/Prestation.php 1 addition, 0 deletionsapp/Models/Prestation.php
- database/factories/PrestationFactory.php 1 addition, 0 deletionsdatabase/factories/PrestationFactory.php
- database/migrations/2025_01_07_174940_add_slug_to_prestations_table.php 39 additions, 0 deletions...tions/2025_01_07_174940_add_slug_to_prestations_table.php
- resources/views/admin/prestations/edit.blade.php 9 additions, 0 deletionsresources/views/admin/prestations/edit.blade.php
- tests/Feature/Controller/PrestationControllerTest.php 3 additions, 0 deletionstests/Feature/Controller/PrestationControllerTest.php
Please sign in to comment