'unsafe-eval'
hi guys i have an issue with js 'unsafe-eval', just a fresh installation (l12 & f4) and follow first steps...how do you manage it?
Self-Referencing Nested Resource
I'm failing to set up a Resource where Pages can have subpages (of the same class). Is that somehow possible using a Nested Resources ?
I've set up a parent and children relationship on the Page-Model.
Following the docs I've managed to display child records but so far without a nested breadcrumb as the resource can't reference itself as $parentResource.
Am I missing something? What would be the Filament way to do this?...
Set default dateTime() table display format
I was under the impression this is now possible in v4, but am struggling to find documentation about it.
Solution:
The code I was looking for is:
Table::configureUsing(function (Table $table): void {
$table->defaultDateTimeDisplayFormat('j M Y, H:i:s');
$table->defaultDateDisplayFormat('j M Y');
});
...Having trouble with InteractsWithPageFilters
In InteractsWithPageFilters, the variable $filters is renamed to $pageFilters
But HasFilterForm still inherits from HasFilters
But in HasFilters, the variable name is still $filters
Now the widget cannot communicate with the page to get data on FormFilter
But if the variable name is changed from $pageFilters to $filters, it works again...

Resource broke after downgrade from v4 to v3
Hello, I just started using filament, I am creating a API, every single page must be translated in multiple languages: english, italian, german, etc.
I downloaded v4, I just downgraded to v3 (v4 is just too new and I needed this plugin: https://v2.filamentphp.com/plugins/language-switch)
I attached a picture of the "pages" table and a picture of the "pages" admin view, as you can see the titles are missing, this is my PageResource class:
```php
class PageResource extends Resource...

Resource without tenancy inside the same panel
I'm trying to make a resource without a tenancy inside a multi tenancy panel. I know there is an option to disable the tenancy scope, but this is only a part of what I'm looking for.
I want the slug of the resource to also not contain the tenancy.
This is for an invitation system im working on, users should be able to go to /dashboard/invitations instead of /dashboard/<organisation (the tenancy)>/invitations...
Solution:
Yeah i was just thinking too hard I guess, you can easily make a custom page with a table on it and I've then registered it like this:
My only question left if there is a different way of registering the route...
->routes(fn () => Route::get('my-invitations', MyInvitations::class)->name('pages.my-invitations'))
->routes(fn () => Route::get('my-invitations', MyInvitations::class)->name('pages.my-invitations'))
Filament theme not editing active nav in light mode
Hi! so i got this code in my theme CSS file:
```css
.fi-sidebar-item.fi-active.fi-sidebar-item-has-url {
@apply bg-blue-700;
}...

Action - utility injection (Get, Set)
Hi All,
The actions have some utility injections (https://filamentphp.com/docs/4.x/actions/overview#action-utility-injection)
The one that i'm missing at the moment is Get and Set (i'm missing them because i want to use them).
...
Solution:
i found a not so nice way to do this.
```php
Action::make('search_by_code')
->label(__('resource.companies.actions.search_by_code.label'))...
RelationManager actions on ViewRecord page
I have a RelationManager that I created following the documentation (without nested resources).
In the relation table, there are
headerActions
, recordActions
, and toolbarActions
, but they do not appear on the ViewRecord page, although they work perfectly on EditRecord.
Is there a way to display actions on the ViewRecord page?...Solution:
You overlooked this in the documetnation
https://filamentphp.com/docs/4.x/resources/managing-relationships#read-only-mode...
Backend validation when using ModifyQueryUsing
Hello,
I notice that when using ModifyQueryUsing on a field, there is no validation of the value sent by the client in the backend. Is this possible?
```php
Select::make('roles')...
Solution:
Ok my bad. I misunderstood...
Here is the solution :
```php
// In App\Models\User.php
public function viewableRoles(): BelongsToMany...
How to scope filament-shield roles
Hello,
I'm wondering how to scope the roles of bezhanSalleh/filament-shield so that the Admin role can only be selected by admins.
Here is my current code:...
Rerender header actions of a resource page
In my application, if a user updates a project, he/she will automatically be added to the "reviewers" HasMany relationship. A user can also assign or unassign himself/herself from a project using conditionally visible ("Does the projects reviewers relationship contain the user or not") header actions on the view and edit pages of the resource.
When updating the project through the edit page of the resource, the header actions do not rerender, so even if the user has become a reviewer as he or she has updated the project, the "Start reviewing" button is still visible, as the "Stop reviewing" isn't. The header actions only update on page refresh or if the user clicks "Start reviewing" even if he or she is already a reviewer (but the UI hasn't updated).
Is there any way to tell the header actions to rerender if the project is updated/changed?...
Bulk Best Practices(i guess)
When you do a bulk select on the table and you have a function to like update status.. Let say you select a millions of records.. how are you going to handle it? are you going to use Queue or is there other way?
Unable to locate a class or view for component [filament-panels::resources.relation-manager]
I have the following in a ViewRecord view to show a relation manager:
```php
@if (count($relationManagers = $this->getRelationManagers()))
<x-filament-panels::resources.relation-manager :active-manager="$this->activeRelationManager" :managers="$relationManagers" :owner-record="$record"...
Solution:
Realized what I was using the custom view can be replaced with prime components now so I didn't need to solve this particular issue. Apologies for anyone who finds this in the future as I was never able to solve the original problem.
Copyable Behavior Changed
I have this code
```
TextColumn::make('code')
->copyable()
->formatStateUsing(fn (string $state): string => Str::mask($state, '*', 10)),...
Solution:
->copyableState(fn (string $state): string => $state)
Refresh Modal form on Custom component
Hey Everyone,
I have a custom component on the left which one is shown by Render hooks. That works.
I click on one of the avatars, it shows a modal. On the modal I want to create ToggleButtons based on which avatar i choose, but it doesn't work. (Customer - Projects 1-n relation)...

Repeater ScrollBar
Hello everyone,
Is there a way to set scrollbar to repeater component ? for example after the 10th row
Thanks...
Override classes in filament blade components
Is there a proper way to override (not just merge) CSS classes of a Filament Blade component?
For example:
```js
<x-filament::button class="absolute top-0 right-0">...
Solution:
I don't think so. Try using important in these cases.
!top-0