inluxc
inluxc
FFilament
Created by inluxc on 12/13/2023 in #❓┊help
Rules in TextInput breaks server.
I fixed creating a Rule class,
6 replies
FFilament
Created by inluxc on 12/13/2023 in #❓┊help
Rules in TextInput breaks server.
No logs are registed
6 replies
FFilament
Created by inluxc on 12/13/2023 in #❓┊help
Rules in TextInput breaks server.
Good question, the server just stops responding and i have to restart it..
6 replies
FFilament
Created by buzkall on 8/17/2023 in #❓┊help
activeLocale error in ListResource using Filament Spatie Translatable
GOT IT 😄
40 replies
FFilament
Created by buzkall on 8/17/2023 in #❓┊help
activeLocale error in ListResource using Filament Spatie Translatable
I cant use can't use $this
40 replies
FFilament
Created by buzkall on 8/17/2023 in #❓┊help
activeLocale error in ListResource using Filament Spatie Translatable
Sorry for my ignorance, I got the following:
Forms\Components\TextInput::make('title')
->afterStateUpdated(function ($state, Set $set, Get $get, $livewire) {
// Get Channel Domain
$domain = Channel::all()->find($get('channel_id'))->value('domain');

// Get Active Language
$languagePrefix = $livewire->activeLocale;

// Get Slug State
$slug = Str::slug($state);

// Generate new Slug
$finalSlug = $domain . '/' . $languagePrefix . '/' . $slug;
$set('slug', $finalSlug);

// Check if Slug Exist


}),
Forms\Components\TextInput::make('title')
->afterStateUpdated(function ($state, Set $set, Get $get, $livewire) {
// Get Channel Domain
$domain = Channel::all()->find($get('channel_id'))->value('domain');

// Get Active Language
$languagePrefix = $livewire->activeLocale;

// Get Slug State
$slug = Str::slug($state);

// Generate new Slug
$finalSlug = $domain . '/' . $languagePrefix . '/' . $slug;
$set('slug', $finalSlug);

// Check if Slug Exist


}),
Working example 😄
40 replies