Richard
Richard
FFilament
Created by Richard on 2/2/2024 in #❓┊help
Test EditUser livewire class gives 403
I solved this by checking if viewAny in the UserPolicy was returning true for my specific case. It returned false, that's why I was getting a 403 error on the edit page. Edit: also, I use multi-tenancy so it's important to call
Filament::setTenant($x);
Filament::setTenant($x);
in the setup of my tests. Marking this one as solved.
4 replies
FFilament
Created by Richard on 3/13/2023 in #❓┊help
Custom breakpoints with $columnSpan property
Hi, i assume your widget lives under the app/Filament/App namespace? I cant think of any other issue causing the problem. I hope someone else can help maybe 😬
12 replies
FFilament
Created by Richard on 3/13/2023 in #❓┊help
Custom breakpoints with $columnSpan property
Hi, i remember doing exactly that. I don't have my computer close at the moment. In your tailwind config in the content array, do you include the paths to these Filament classes to enable Tailwind to scan the files for CSS-classes? I don't know if Filament has this already configured but i remember i once had problems because of that.
12 replies
FFilament
Created by Richard on 3/13/2023 in #❓┊help
Custom breakpoints with $columnSpan property
That solved my problem, thank you! 🙂
12 replies
FFilament
Created by Richard on 3/13/2023 in #❓┊help
Custom breakpoints with $columnSpan property
Also, when I change for example the 'xl' breakpoint to '2000px' and I use it like in the example above, it works. Does Filament take into account newly added breakpoints that don't come with the standard Tailwind screens-configuration?
12 replies
FFilament
Created by Richard on 3/13/2023 in #❓┊help
Custom breakpoints with $columnSpan property
Hi, no luck so far with this issue. I added a breakpoint in Tailwind like this:
theme: {
extend: {
colors: {
danger: colors.rose,
primary: colors.blue,
success: colors.green,
warning: colors.yellow,
},
screens: {
'3xl': '2000px'
}
},
}
theme: {
extend: {
colors: {
danger: colors.rose,
primary: colors.blue,
success: colors.green,
warning: colors.yellow,
},
screens: {
'3xl': '2000px'
}
},
}
The problem is that nothing changes when I use this breakpoint '3xl' like this:
protected int|string|array $columnSpan = [
'sm' => 4,
'xl' => 2,
'3xl' => 1
];
protected int|string|array $columnSpan = [
'sm' => 4,
'xl' => 2,
'3xl' => 1
];
12 replies
FFilament
Created by Richard on 3/13/2023 in #❓┊help
Custom breakpoints with $columnSpan property
Thanks, I will look into it when I get home 👍
12 replies