Paweł Wawrzyniak
Paweł Wawrzyniak
FFilament
Created by Paweł Wawrzyniak on 11/28/2024 in #❓┊help
Translate the modal
Is it possible to set a value from validation.php instead of putting a hardcoded string each time? If I use ->rules(['required') then I will get the value from validation.php file, but struggle to find a solution when validation is in HTML5
10 replies
FFilament
Created by Paweł Wawrzyniak on 12/5/2024 in #❓┊help
Filter not apply for the pivot table
I used whereHas instead of join and now it works inspirations come from https://discord.com/channels/883083792112300104/1315476942451118080/1315476942451118080
3 replies
FFilament
Created by Paweł Wawrzyniak on 11/28/2024 in #❓┊help
Translate the modal
Now it work perfectly. Thank's a lot.
10 replies
FFilament
Created by Paweł Wawrzyniak on 11/28/2024 in #❓┊help
Translate the modal
not yet I tried ->extraAttributes(attributes: ['title' => 'Text input']) but still trying
10 replies
FFilament
Created by Paweł Wawrzyniak on 11/28/2024 in #❓┊help
Translate the modal
Thanks, this is a very good tip 🙂
10 replies
FFilament
Created by Paweł Wawrzyniak on 11/25/2024 in #❓┊help
Scope for the Panel
Thanks for your answer. I am not sure, I have a structure where a logged user can manage many organizations, and an Organization has many places to manage, e.g. addresses, and employees. I am looking at something like context, because when the user is logged in then he can switch context (organization) and see only addresses employees for the organization.
6 replies
FFilament
Created by ericmp #2 on 11/28/2023 in #❓┊help
How to translate Resource model name?
@GuyVerville I had a similar issue override the methods
//these methods are responsible for translation in Resource when you want to `Ucwords` the label
public static function getTitleCaseModelLabel(): string
{
return static::getModelLabel();
}

public static function getTitleCasePluralModelLabel(): string
{
return static::getPluralModelLabel();
}

// put here a translations

public static function getModelLabel(): string
{
return __(key: 'singular');
}

public static function getPlularModelLabel(): string
{
return __(key: 'singular');
}
//these methods are responsible for translation in Resource when you want to `Ucwords` the label
public static function getTitleCaseModelLabel(): string
{
return static::getModelLabel();
}

public static function getTitleCasePluralModelLabel(): string
{
return static::getPluralModelLabel();
}

// put here a translations

public static function getModelLabel(): string
{
return __(key: 'singular');
}

public static function getPlularModelLabel(): string
{
return __(key: 'singular');
}
13 replies