Positiverain
CheckboxList SelectAll by default
When submitting form, you'll notice that the checkboxlist will return something for $data['checkboxlistinput'], the checked items of that checkbox. By reversing this process you are pre-filling the checkboxlist component. Have to use either of those two methods above.
5 replies
Ldaprecord with filament
in providers -> ldap -> model, don't forget to use
when using Online LDAP test server or any other OpenLDAP.
source: https://www.youtube.com/watch?v=5lRBGdLrxj0
23 replies
repeater
I have the same question, so adding this: Is it possible to add more items by selecting an item from a select input? for example item1 of the repeater is a select, by selecting a value it adds another item, item2 to the repeater, which has the same select input. Am gonna use it for a model that has a parent and some children of same model type, self referencing models.
14 replies
How to add a custom 'CreateRecord Page' to the sidebar navigation?
When I use navigationItems() as in
I get
Call to a member function getId() on null
Error.
same NavigationItem used in $panel->navigation(NavigationBuilder $builder)
works as intended5 replies
Eloquent Builder with relationships
yeh it does work with finding only admins, but what if i want multiple roles?
return User::role('admin'); works, but i also want to show the users along with admin
return User::role(['admin','user']); doesn't work
8 replies
Eloquent Builder with relationships
yeh it is a users table, which is some how linked to roles table..
I am talking about this function from the user resource
public static function getEloquentQuery(): Builder {....}
which builds the table,
Usually there is
return parent::getEloquentQuery();
But I want only admins to be shown on the table
8 replies