skip to Main Content

Laravel – FilamentPHP Select input editing

Heyya, I am working on Select FormsComponentsSelect::make('roles')->options(function (){ $roles = Role::pluck('name'); $filtered_roles = $roles->filter(fn($role)=>$role!='super_admin'); return $filtered_roles; })->searchable()->preload()->multiple() Works great. However on the edit page it doesnt show already defined roles for specific user. Each time it show select one of…

VIEW QUESTION

Laravel Livewire @script

I have this button in the blade file of a livewire component: <button type="button" title="Adauga o disciplina noua" class="ml-2 my-auto bg-blue-500 text-white px-2 py-1 rounded-lg" onclick="adaugaSelect()">+</button> and the function: ` @script <script> function adaugaSelect() { } </script> @endscript` And in…

VIEW QUESTION
Back To Top
Search