fadil
fadil
FFilament
Created by fadil on 8/6/2023 in #❓┊help
Afterstate update
how can i get the value if i want to use the value and calculated him in another input
7 replies
FFilament
Created by fadil on 8/6/2023 in #❓┊help
Afterstate update
thanks, i've done it
7 replies
FFilament
Created by fadil on 8/6/2023 in #❓┊help
Afterstate update
i want to update automaticaly text price if i select the playtstaion
7 replies
FFilament
Created by fadil on 8/3/2023 in #❓┊help
how do you make the order by updated at the table?
oke thanks, i've done it\
4 replies
FFilament
Created by fadil on 7/31/2023 in #❓┊help
How to connect input form
like this? ->reactive() ->afterStateUpdated(function (Closure $set, $state) { fn (Get $get): bool => !$get('booking_duration'); $set('end_time', Str::end_time($state)); }) i dont know the structure?
14 replies
FFilament
Created by fadil on 7/31/2023 in #❓┊help
How to connect input form
but how to make the end time the result of the start time added with the duration of other inputs?
14 replies
FFilament
Created by fadil on 7/24/2023 in #❓┊help
teach we about query logic in filament
thanks for your example. i've done it.
11 replies
FFilament
Created by fadil on 7/24/2023 in #❓┊help
teach we about query logic in filament
TextInput::make('booking_code') ->afterStateHydrated(function () { $prefix = 'ORD-PS-'; $latestBooking = Booking::orderBy('id', 'desc')->first(); if ($latestBooking) { $bookingNumber = intval(substr($latestBooking->booking_code, strlen($prefix))); $bookingNumber++; } else { $bookingNumber = 1; } $bookingCode = $prefix . str_pad($bookingNumber, 4, '0', STR_PAD_LEFT); }) like this? im sorry im very very very beginner
11 replies
FFilament
Created by fadil on 7/24/2023 in #❓┊help
teach we about query logic in filament
TextInput::make('booking_code') ->mutateFormDataUsing(function (array $bookingCode): array { $prefix = 'ORD-PS-'; $latestBooking = Booking::orderBy('id', 'desc')->first(); if ($latestBooking) { $bookingNumber = intval(substr($latestBooking->booking_code, strlen($prefix))); $bookingNumber++; } else { $bookingNumber = 1; } // Buat kode booking dengan format "ordps0001" $bookingCode = $prefix . str_pad($bookingNumber, 4, '0', STR_PAD_LEFT); return $bookingCode; }) i try it and i got an error Method Filament\Forms\Components\TextInput::mutateFormDataUsing does not exist. how to fix this error sir?
11 replies
FFilament
Created by fadil on 7/18/2023 in #❓┊help
array to string convertion
oke, i already remove it, and the error still appear
7 replies
FFilament
Created by fadil on 7/18/2023 in #❓┊help
array to string convertion
sorry for my mistake, i have an eror in this case, i wan to create a playstation form and i have many to many relationship with jenisgame, i have a pivot table on my database its called playstation_jenisgame. if i want to create my playstation in playstation form a eror massage (Array to String Convertion) i have a casts in my playstation models protected $casts = ['jenisgame_id' => 'array']; and the eror massage still appears
7 replies
FFilament
Created by fadil on 7/17/2023 in #❓┊help
SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '["1","5"]' for column 'jenisgame_id'
thanks for your help, i think my table structure now its correct
11 replies
FFilament
Created by fadil on 7/17/2023 in #❓┊help
SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '["1","5"]' for column 'jenisgame_id'
ok first i think i learn about many to many relationship
11 replies
FFilament
Created by fadil on 7/17/2023 in #❓┊help
SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '["1","5"]' for column 'jenisgame_id'
oke i try it
11 replies
FFilament
Created by fadil on 7/17/2023 in #❓┊help
SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '["1","5"]' for column 'jenisgame_id'
im a newbie please teach me
11 replies
FFilament
Created by fadil on 7/17/2023 in #❓┊help
SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '["1","5"]' for column 'jenisgame_id'
what should i do?
11 replies
FFilament
Created by fadil on 7/17/2023 in #❓┊help
SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '["1","5"]' for column 'jenisgame_id'
please anyone can solve this problem?
11 replies