Falk Maria Zeitsprung
Falk Maria Zeitsprung
FFilament
Created by Falk Maria Zeitsprung on 12/3/2023 in #❓┊help
where configure the redirect url when user logs out admin panel?
thanks @krekas
8 replies
FFilament
Created by Falk Maria Zeitsprung on 12/3/2023 in #❓┊help
where configure the redirect url when user logs out admin panel?
i had a misconfiguration
8 replies
FFilament
Created by Falk Maria Zeitsprung on 12/3/2023 in #❓┊help
where configure the redirect url when user logs out admin panel?
resolved thanks
8 replies
FFilament
Created by Falk Maria Zeitsprung on 10/24/2023 in #❓┊help
unique email with deleted_at
Thanks for your answer. I have in the model:
class Applicant extends Model
{
use HasFactory, SoftDeletes, Notifiable;
class Applicant extends Model
{
use HasFactory, SoftDeletes, Notifiable;
and i have
public static function getEloquentQuery(): Builder
{
return parent::getEloquentQuery()
->withoutGlobalScopes([
SoftDeletingScope::class,
]);
}
public static function getEloquentQuery(): Builder
{
return parent::getEloquentQuery()
->withoutGlobalScopes([
SoftDeletingScope::class,
]);
}
so that should work out of the box you say? i will test again. Thanks
9 replies
FFilament
Created by Falk Maria Zeitsprung on 10/24/2023 in #❓┊help
can i group headeractions in getHeaderActions?
hey thanks, that works:
class EditApplicant extends EditRecord
{
protected static string $resource = ApplicantResource::class;

protected function getHeaderActions(): array
{
return [
ActionGroup::make([
Action::make('pdf1_es')
->label('PDF1 ES')
->action('showPdf1Es')
->icon('heroicon-o-eye')
->size('sm')
->hidden(!auth()->user()->hasAnyRole(['Root', 'Admin', 'User'])),
]),
class EditApplicant extends EditRecord
{
protected static string $resource = ApplicantResource::class;

protected function getHeaderActions(): array
{
return [
ActionGroup::make([
Action::make('pdf1_es')
->label('PDF1 ES')
->action('showPdf1Es')
->icon('heroicon-o-eye')
->size('sm')
->hidden(!auth()->user()->hasAnyRole(['Root', 'Admin', 'User'])),
]),
5 replies
FFilament
Created by Arko on 9/27/2023 in #❓┊help
Conditionally show a dashboard page
tell that my customer 🙂
18 replies
FFilament
Created by Arko on 9/27/2023 in #❓┊help
Conditionally show a dashboard page
any solution for version 2?
18 replies
FFilament
Created by Falk Maria Zeitsprung on 9/28/2023 in #❓┊help
Repeater shows up collapsed - why?
Also if i paste the example from the v2 documentation it appears collapsed:
use Filament\Forms\Components\Repeater;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;

Repeater::make('members')
->schema([
TextInput::make('name')->required(),
Select::make('role')
->options([
'member' => 'Member',
'administrator' => 'Administrator',
'owner' => 'Owner',
])
->required(),
])
->columns(2)
use Filament\Forms\Components\Repeater;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;

Repeater::make('members')
->schema([
TextInput::make('name')->required(),
Select::make('role')
->options([
'member' => 'Member',
'administrator' => 'Administrator',
'owner' => 'Owner',
])
->required(),
])
->columns(2)
` Is there in filament any config var which maybe is controlling this? I pasted the code in other forms in my filamente v2 app, and always the repeater appears collapsed.
7 replies
FFilament
Created by Falk Maria Zeitsprung on 9/28/2023 in #❓┊help
Repeater shows up collapsed - why?
why does that code show up the repeater item in collapsed? I need it open.
Card::make()
->schema([
Repeater::make('start_times')
->label('Hora(s) de inicio')
->hint(__('Haciendo clic en el icono clonar puedes añadir más rápido.'))
->createItemButtonLabel(__('+ Añadir hora de inicio'))
->columns(2)
->required()
->cloneable()
->disableItemMovement()
->minItems(1)
->defaultItems(1)
->collapsed(false)
->schema([

TimePicker::make('start_time')
->label('Hora de inicio')
->default('12:00')
->withoutSeconds()
->required(),

]),
]),
Card::make()
->schema([
Repeater::make('start_times')
->label('Hora(s) de inicio')
->hint(__('Haciendo clic en el icono clonar puedes añadir más rápido.'))
->createItemButtonLabel(__('+ Añadir hora de inicio'))
->columns(2)
->required()
->cloneable()
->disableItemMovement()
->minItems(1)
->defaultItems(1)
->collapsed(false)
->schema([

TimePicker::make('start_time')
->label('Hora de inicio')
->default('12:00')
->withoutSeconds()
->required(),

]),
]),
\
7 replies
FFilament
Created by Falk Maria Zeitsprung on 9/28/2023 in #❓┊help
Repeater shows up collapsed - why?
yes, i have tried collapsed(false), but it still shows up closed, when i load the form.
7 replies
FFilament
Created by Falk Maria Zeitsprung on 8/1/2023 in #❓┊help
update actions on filter change
Works Perfect @saadeguilherme !! 🤩 Wow. Really great!!! Thanks very very much.
11 replies
FFilament
Created by Falk Maria Zeitsprung on 8/1/2023 in #❓┊help
update actions on filter change
If the userId is changing, i need the Action to "recalculate".
11 replies
FFilament
Created by Falk Maria Zeitsprung on 8/1/2023 in #❓┊help
update actions on filter change
thanks @saadeguilherme Thank you very much! I am new. Could you please help me where to put this as a small example please?
11 replies
FFilament
Created by Falk Maria Zeitsprung on 7/17/2023 in #❓┊help
selectfilter from json data
you are completely right 🙂 haha. i had to do several intents.
33 replies
FFilament
Created by Falk Maria Zeitsprung on 7/17/2023 in #❓┊help
selectfilter from json data
Hey @pboivin great. Thanks very much! :)_
33 replies
FFilament
Created by Falk Maria Zeitsprung on 7/17/2023 in #❓┊help
selectfilter from json data
ChatGPT4 says: In this example, we're using MySQL's JSON_CONTAINS function which returns 1 if a JSON document contains a specified value. Note that this will only work if you're using MySQL 5.7.8 or higher or MariaDB 10.2.3 or higher. This is because the JSON_CONTAINS function was added in these versions.
33 replies
FFilament
Created by Falk Maria Zeitsprung on 7/17/2023 in #❓┊help
selectfilter from json data
(not sure about which version of MariaDB would be needed....)
33 replies
FFilament
Created by Falk Maria Zeitsprung on 7/17/2023 in #❓┊help
selectfilter from json data
yes, thats the case.
33 replies
FFilament
Created by Falk Maria Zeitsprung on 7/17/2023 in #❓┊help
selectfilter from json data
for any more elegant solution i would be very thankfull. But is has to work on maria db.
33 replies