Example UserResource with Password reset button
```php
public static function table(Table $table): Table
{
return $table
->columns([...
Problem with relationmanager
I've a bit of a struggle with table list/form.
I've made a table list with customers, within the edit of the customer I've integrated two relation managers.
- One: With customer contact persons.
- Two: With notes of the customer....
How to set company_id in role_user table
I'm able to assign roles and everything works great, but the currently logged in
company_id
(multi-tenancy) doesn't get saved to the pivot table (remains null)
Is there a way to set the pivot table with the currently logged in company_id
when assigning roles to a user?
I'm using a UserResource
to do this, and I just add the roles selector component using:...Hide column in table conditionally
I checked the documentation and all they give is the attached image example...
What I need to do is hide a column
if
another column has a value
In this specific example:...Pivot table issue
When creating a new Company Litter, I have a pivot table called
company_litter
that gets filled automatically by Filament
But for some reason it's still requiring a company_id
field in the litters
table
Filament fills in the company_id
in the litters
table, as well as the company_litter
table...How to customize Table/List view
I'm trying to get rid of the table completely inside of the resource, and replace the results with cards
Is this possible?...
How to check user roles in canAccessPanel()
Hello, I can't seem to find the code to use to check if a role is assigned to a user from database into canAccessPanel()
I need to check:
role_user pivot table...