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.
LL
Leonel López
✓ Link copied!
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."
ED
Emre Dikmen
✓ Link copied!
The issue is that ManageCategories is a Simple Resource page (modal-based CRUD), so it doesn't support separate edit routes.
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