Bruno Pereira
Bruno Pereira
FFilament
Created by delboy1978uk on 4/16/2025 in #❓┊help
what is my custom page route?
3 replies
FFilament
Created by JustNoOne on 4/9/2025 in #❓┊help
Define disk in filament ImportAction
one is for laravel and another is for filament
6 replies
FFilament
Created by JustNoOne on 4/9/2025 in #❓┊help
Define disk in filament ImportAction
make sure that in your env file you set FILAMENT_FILESYSTEM_DISK to the external storage
6 replies
FFilament
Created by Marek on 4/8/2025 in #❓┊help
Simple question about nested models with Form
you have to define the field as a relationship if I'm not mistaken
8 replies
FFilament
Created by Marek on 4/8/2025 in #❓┊help
Simple question about nested models with Form
8 replies
FFilament
Created by Marek on 4/8/2025 in #❓┊help
Simple question about nested models with Form
Have you defined the relations in the Model correctly?
8 replies
FFilament
Created by Usurious on 3/29/2025 in #❓┊help
In Form Builder - Relation is failing to save. Presents SQL error.
glad I could help
17 replies
FFilament
Created by Usurious on 3/29/2025 in #❓┊help
In Form Builder - Relation is failing to save. Presents SQL error.
User model has many trips you use hasMany ($this->hasMany(Trip::class)) Trip belongs to a User you use belongsTo ($this->belongsTo(User::class,'host_id'))
17 replies
FFilament
Created by Usurious on 3/29/2025 in #❓┊help
In Form Builder - Relation is failing to save. Presents SQL error.
it can be host_id, user_id. And in the the relation function in the model, you put 'host_id' instead of 'id'
17 replies
FFilament
Created by Usurious on 3/29/2025 in #❓┊help
In Form Builder - Relation is failing to save. Presents SQL error.
hasOne() is used in a one to one relation.
17 replies
FFilament
Created by Usurious on 3/29/2025 in #❓┊help
In Form Builder - Relation is failing to save. Presents SQL error.
The trip table must have user_id foreign key, thats how you relate them. Check this https://laravel.com/docs/12.x/eloquent-relationships#one-to-many
17 replies
FFilament
Created by justhammin on 3/28/2025 in #❓┊help
Is there a way to remove the theme switcher and just have dark mode?
@if (filament()->hasDarkMode() && (! filament()->hasDarkModeForced()))
<x-filament::dropdown.list>
<x-filament-panels::theme-switcher />
</x-filament::dropdown.list>
@endif
@if (filament()->hasDarkMode() && (! filament()->hasDarkModeForced()))
<x-filament::dropdown.list>
<x-filament-panels::theme-switcher />
</x-filament::dropdown.list>
@endif
10 replies
FFilament
Created by justhammin on 3/28/2025 in #❓┊help
Is there a way to remove the theme switcher and just have dark mode?
if you force darkmode, the theme switcher will not show, according to the view in the repo
10 replies
FFilament
Created by justhammin on 3/28/2025 in #❓┊help
Is there a way to remove the theme switcher and just have dark mode?
public function darkMode(bool $condition = true, bool $isForced = false): static
{
$this->hasDarkMode = $condition;
$this->hasDarkModeForced = $isForced;
public function darkMode(bool $condition = true, bool $isForced = false): static
{
$this->hasDarkMode = $condition;
$this->hasDarkModeForced = $isForced;
Second param is to force darkmode, so darkmode(true,true)
10 replies
FFilament
Created by zerre on 3/27/2025 in #❓┊help
Tenancy Cors error
the "." must be in it, because to accept all subdomains from the APP_URL
6 replies
FFilament
Created by zerre on 3/27/2025 in #❓┊help
Tenancy Cors error
Is it a different domain or a subdomain from the app_url? I normally fix those problems with a SESSION_DOMAIN=.${APP_DOMAIN} and APP_DOMAIN="examp.test" (values adapted to your case) in the .env file
6 replies
FFilament
Created by justhammin on 3/27/2025 in #❓┊help
How to persist localeSwitcher
8 replies