Hass
Hass
Explore posts from servers
FFilament
Created by CT on 2/9/2024 in #❓┊help
How to eager load within a select using Form Builder?
I’m not sure if this is the best way to handle this, maybe someone else have a better solution
7 replies
FFilament
Created by CT on 2/9/2024 in #❓┊help
How to eager load within a select using Form Builder?
7 replies
FFilament
Created by CT on 2/9/2024 in #❓┊help
How to eager load within a select using Form Builder?
You can set in the model to always eagerLoad the relationship
7 replies
FFilament
Created by Hass on 1/13/2024 in #❓┊help
User being able to see resource in the navigation even without permission
Gonna keep that in mind, thank you! Your example of the data shown in the table gave cleared some confusion that I had
17 replies
FFilament
Created by Hass on 1/13/2024 in #❓┊help
User being able to see resource in the navigation even without permission
Do I have to generate policies for every resource's model?
17 replies
FFilament
Created by Hass on 1/13/2024 in #❓┊help
User being able to see resource in the navigation even without permission
That's why the policy check for the model of my resource inside the helpers.php was returning null
17 replies
FFilament
Created by Hass on 1/13/2024 in #❓┊help
User being able to see resource in the navigation even without permission
I see, it makes sense
17 replies
FFilament
Created by Hass on 1/13/2024 in #❓┊help
User being able to see resource in the navigation even without permission
what do you mean by my permissions are off?
17 replies
FFilament
Created by Hass on 1/13/2024 in #❓┊help
User being able to see resource in the navigation even without permission
I figured out the problem 😆 tl;dr:
//ExampleResource.php
//...

class ExampleResource extends Resource
{
protected static bool $shouldCheckPolicyExistence = false; // setting this to false solves the problem

//...
}
//ExampleResource.php
//...

class ExampleResource extends Resource
{
protected static bool $shouldCheckPolicyExistence = false; // setting this to false solves the problem

//...
}
17 replies