Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

Column Formatting: Badges, URLs, Labels, Alignment, Dates

Premium
6:00

The Full Lesson is Only for Premium Members

Want to access all of our courses? (29 h 14 min)

You also get:

54 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

Comments & Discussion

LL
Leonel López ✓ Link copied!

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.

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.

Generate the page files:

php artisan make:filament-page CreateCategory --resource=CategoryResource --type=CreateRecord
php artisan make:filament-page EditCategory --resource=CategoryResource --type=EditRecord
php artisan make:filament-page ViewCategory --resource=CategoryResource --type=ViewRecord
// Pages/ListCategories.php
class ListCategories extends ListRecords
{
protected static string $resource = CategoryResource::class;
 
protected function getHeaderActions(): array
{
return [CreateAction::make()];
}
}
// Pages/EditCategory.php
class 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'),
];
}
```

We'd Love Your Feedback

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.