ashar
ashar
FFilament
Created by ashar on 12/18/2023 in #❓┊help
passing dynamic data
opps sorry . Actually i posted it in the morning no one answered. still i was stuck so found you online so mentioned you guessing if you might help 😬
7 replies
FFilament
Created by ashar on 12/18/2023 in #❓┊help
passing dynamic data
@Dan Mason
7 replies
FFilament
Created by ashar on 12/18/2023 in #❓┊help
passing dynamic data
when i use $this-session it shows $this cannot be used when in object context
7 replies
FFilament
Created by Debishree Tripathy on 12/15/2023 in #❓┊help
Filament shield
use filaemnt original documentation would be much helpful
6 replies
FFilament
Created by ashar on 12/8/2023 in #❓┊help
action not working
Thanks for your assistance too @Wbzy
13 replies
FFilament
Created by ashar on 12/8/2023 in #❓┊help
action not working
ok i found the erroe function name is end game and Action is ENd ..Name should be same . It works now
13 replies
FFilament
Created by ashar on 12/8/2023 in #❓┊help
action not working
@Wbzy
13 replies
FFilament
Created by ashar on 12/8/2023 in #❓┊help
action not working
this is a custom page
13 replies
FFilament
Created by ashar on 12/8/2023 in #❓┊help
action not working
didnt work @Wbzy
13 replies
FFilament
Created by ashar on 12/8/2023 in #❓┊help
action not working
i have modified it like this public function endGame() { return Action::make('End') ->icon('heroicon-m-no-symbol') ->color('danger') ->action(function (array $data, SessionService $sessionService): void { $sessionService->addGame($this->session, $data); }); } still action not performing
13 replies
FFilament
Created by ashar on 12/8/2023 in #❓┊help
action not working
@Wbzy
13 replies
FFilament
Created by ashar on 12/8/2023 in #❓┊help
action not working
->action((new SessionService))->addGame($this->session,$data); like this ?
13 replies
FFilament
Created by ashar on 11/22/2023 in #❓┊help
hi,
now can you help ? @Dennis Koch
15 replies
FFilament
Created by ashar on 11/22/2023 in #❓┊help
hi,
its was giving eror no default value for etc . coz it was going null so the value i want im storing it in default for now .
15 replies
FFilament
Created by ashar on 11/22/2023 in #❓┊help
hi,
dd($data) showing array:3 [▼ // app/Filament/Resources/ExpenseResource/Pages/CreateExpense.php:27 "name" => "Laurel Conner" "description" => "Veritatis velit lau" "voucherDetails" => array:1 [▶] ] you see i have array vcoucherDetilas in it but when i update record in mutate function foreach ($data['voucherDetails'] as &$voucherDetail) { $voucherDetail = array_merge($voucherDetail, [ 'account_id' => $account, 'voucherable_type' => Account::class, 'created_by' => Auth::id(), 'voucherable_id' => $account, 'quantity' => 1, ]); } its not updating the data in voucherDetail. so for now i was setting default values based on account_id for name . The rest i have set to default @Dennis Koch
15 replies
FFilament
Created by ashar on 11/22/2023 in #❓┊help
hi,
@Dennis Koch
15 replies
FFilament
Created by ashar on 11/22/2023 in #❓┊help
hi,
so this is the reason i want that the form name should be set as defualt account_id name
15 replies
FFilament
Created by ashar on 11/22/2023 in #❓┊help
hi,
i am doing this already protected function mutateFormDataBeforeCreate(array $data): array { $data = $this->data; $data has my data and within it there is a array . when im updating , it doesnt fetches the array from $data and im unable to update those fields . SO for now i am updating it on default in the form . @Dennis Koch
15 replies
FFilament
Created by ashar on 11/22/2023 in #❓┊help
hi,
yes on it
15 replies
FFilament
Created by ashar on 11/22/2023 in #❓┊help
hi,
yes i want when account_id fields is selected , its name should be assigned as default in name field @Shaung Bhone
15 replies