Want to access all of our courses? (36 h 00 min)
You also get:
Already a member? Login here
Regarding the Clickable URL Column, there was an error due to some missing parameters:
Missing required parameter for [Route: filament.admin.resources.categories.edit] [URI: panel/categories/{record}/edit] [Missing parameter: record].
I added the missing part myself for the Edit action in the getPages() method of CategoryResource:
public static function getPages(): array { return [ 'index' => ManageCategories::route('/'), 'edit' => ManageCategories::route('/{record}/edit'), ]; }
Since the ManageCategories class handles the entire CRUD, I assumed this would solve the issue, but I am still getting the same error.
Could you please let me know where exactly I should fix this?
I look forward to your support.
Please ignore my previous comment. I just read the note: "In our project this specific syntax will NOT work, as we don’t have the page for Category Edit. Remember, we generated that resource with --simple, so this was just an illustrative example."
The issue is that ManageCategories is a Simple Resource page (modal-based CRUD), so it doesn't support separate edit routes.
Generate the page files:
php artisan make:filament-page CreateCategory --resource=CategoryResource --type=CreateRecordphp artisan make:filament-page EditCategory --resource=CategoryResource --type=EditRecordphp artisan make:filament-page ViewCategory --resource=CategoryResource --type=ViewRecord
// Pages/ListCategories.phpclass ListCategories extends ListRecords{ protected static string $resource = CategoryResource::class; protected function getHeaderActions(): array { return [CreateAction::make()]; }}
// Pages/EditCategory.phpclass EditCategory extends EditRecord{ protected static string $resource = CategoryResource::class; protected function getHeaderActions(): array { return [DeleteAction::make()]; }}
Update getPages() -> CategoryResource
public static function getPages(): array{ return [ 'index' => ManageCategories::route('/'), 'create' => CreateCategory::route('/create'), 'view' => ViewCategory::route('/{record}'), 'edit' => EditCategory::route('/{record}/edit'), ];} ```
Tell us what you like or what we can improve
Feel free to share anything you like or dislike about this page or the platform in general.
Your feedback has been received. We truly appreciate you taking the time to help us improve.
Regarding the Clickable URL Column, there was an error due to some missing parameters:
Missing required parameter for [Route: filament.admin.resources.categories.edit] [URI: panel/categories/{record}/edit] [Missing parameter: record].
I added the missing part myself for the Edit action in the getPages() method of CategoryResource:
public static function getPages(): array { return [ 'index' => ManageCategories::route('/'), 'edit' => ManageCategories::route('/{record}/edit'), ]; }
Since the ManageCategories class handles the entire CRUD, I assumed this would solve the issue, but I am still getting the same error.
Could you please let me know where exactly I should fix this?
I look forward to your support.
Please ignore my previous comment. I just read the note: "In our project this specific syntax will NOT work, as we don’t have the page for Category Edit. Remember, we generated that resource with --simple, so this was just an illustrative example."
The issue is that ManageCategories is a Simple Resource page (modal-based CRUD), so it doesn't support separate edit routes.
Generate the page files:
Update getPages() -> CategoryResource