AliBabba420
Explore posts from serversTLCTuto's Laravel Corner
•Created by AliBabba420 on 12/2/2023 in #💡filament
How to add a ViewPage in index
Like profile page of the user, I want to show the user login profile view page in a resource index page ? Any suggestion how? Generally a view page required a record but i want to pass the auth() ->user() ->id there but it doesn't work
4 replies
TLCTuto's Laravel Corner
•Created by AliBabba420 on 11/20/2023 in #💡filament
How to reload a Edit page
i have 2 panels and in admin panel i have student resource which is also present in app panel and i have a status field in the student resource table ok when the status is false the app panel user should not edit that record ,ex- in admin panel admin change the status of a record to false and the app panel user is already in the edit page of that record so then if he edit that record then the false status changed to true so how can i acheive that like when admin change the status and app panel user present inside the edit page of that record he should n't edit that record
4 replies
Dispatch event not working on action
EditRecord in panel 1
Action::make('Close Case')
->label(strval(__('close_case')))
->action(function (Model $record) {
$this->dispatch('switchedTeam',[$record])->to(PagesEditStudentCenter::class);
}),
same resource in panel 2 EditRecord
#[On('switchedTeam')]
public function switchedTeam($record)
{
info("list");
dd($record->id);
}
while i execute this close case action the switchedTeam function is not triggered in the panel 2
3 replies
TLCTuto's Laravel Corner
•Created by AliBabba420 on 9/26/2023 in #💡filament
V2 plugin create for V3
I try to replicate solution forest filament tab layout plugin for V3 but it give error at canbehidden trait
6 replies
Resource Widgets in the EditPage using Tab layout
I have a student resource file and in the edit page I want to show some resource widgets in tab manner, in v2 i use solutions forest filament tab layout plugin but when I switch to v3 i saw the plugin is archive and it is integrate in v3 infolist builder tab but exactly IInfolist builder is not pass resource widgets ?
Any ideas how can i pass resource widgets in the tab and display it in the edit page of studentresource
4 replies