dusan8061
dusan8061
FFilament
Created by dusan8061 on 7/24/2023 in #❓┊help
Terms and conditions
This should be the solution. I will soon start implementing this and will keep you guys updated, but I am very optimistic!
8 replies
FFilament
Created by dusan8061 on 7/24/2023 in #❓┊help
Terms and conditions
Hey, thanks a lot for an answer. I've already tried breezy, and from what I could see, there is no something like that there. The column is created, and the checkbox which is pointing it to 'users' table in DB. Ok, i will check this with the Middleware tomorrow and keep you updated. Thank you very much!!!!!
8 replies
FFilament
Created by dusan8061 on 7/24/2023 in #❓┊help
Terms and conditions
filament-breezy
8 replies
FFilament
Created by dusan8061 on 6/29/2023 in #❓┊help
Scrollable doesn't work
I think that some styles in blade could overrite them. I am on it, will keep you guys updater. No scrolling at all :/
9 replies
FFilament
Created by dusan8061 on 6/29/2023 in #❓┊help
Scrollable doesn't work
Literally nothing connected to scrollbar. Using macos, but the colegue uses Windows and have the same issue. But i am pretty sure, didn't change anything which should affect scrollbar.
9 replies
FFilament
Created by dusan8061 on 6/29/2023 in #❓┊help
Scrollable doesn't work
9 replies
FFilament
Created by dusan8061 on 6/21/2023 in #❓┊help
Radio/Select
Yes, that's it. Many, many thanks!
5 replies
FFilament
Created by dusan8061 on 5/31/2023 in #❓┊help
File upload error
this is it! MANY THANKS!!!!!
3 replies
FFilament
Created by dusan8061 on 4/21/2023 in #❓┊help
Pre-select filters in table
it is. but still for the widgets I decided to use approach in widget itself by adding a route : route('filament.resources.users.index',['tableFilters[role][values][0]' => 5]) it all helped, thank you very much guys!
14 replies
FFilament
Created by dusan8061 on 4/21/2023 in #❓┊help
Pre-select filters in table
so @Dan Harrin Tables\Filters\SelectFilter::make('role') ->label(__('Role')) // ->multiple() ->options(function (){ return Role::all()->pluck('name', 'id')->toArray(); }) ->relationship('roles') ->default(5), The above pre selects the role that I want. However, the role filter should be a multiple select, and I am not sure how to correctly define a default for that? I should mention that the team lead doesn't want to go down the scopes route.
14 replies
FFilament
Created by dusan8061 on 4/21/2023 in #❓┊help
Pre-select filters in table
ok, i will check this and come back to you. thank you very much
14 replies
FFilament
Created by dusan8061 on 4/21/2023 in #❓┊help
Pre-select filters in table
I don't actually need it, I need it to be pre-selected. For example - I have roles : admin, staff, customer.. and from the widget, if I am logged in as a customer, the User table should show only the Customers. @Dan Harrin
14 replies
FFilament
Created by dusan8061 on 4/21/2023 in #❓┊help
Pre-select filters in table
nope, since they have no permissions for that. For the permissions I'm using Global Scope @Dan Harrin
14 replies
FFilament
Created by dusan8061 on 4/21/2023 in #❓┊help
Pre-select filters in table
so i need to make it pre-selected with the role "customer" if I'm logged in as a customer @Dan Harrin
14 replies
FFilament
Created by dusan8061 on 4/21/2023 in #❓┊help
Pre-select filters in table
hey @Dan Harrin Tables\Filters\SelectFilter::make('organisation_id') ->label(__('Organisation')) ->options(function (){ $organisation = User::select('organisation_id')->groupBy('id', 'organisation_id')->get()->toArray(); return Organisation::select()->whereIn('id', $organisation)->get()->pluck('name', 'id')->toArray(); }),
14 replies
FFilament
Created by gizmojo on 4/17/2023 in #❓┊help
Access table filter in togglable
Hey guys, I have widget Staff Widget. Depending on the role which user is logged in, I have to create pre-select filter in the table. So this is StaffWidget.php in widgets folder : protected function getTableColumns(): array { return [ Tables\Columns\TextColumn::make('name'), Tables\Columns\TextColumn::make('roles.name') ]; } and this is the code from UserResource.php : Forms\Components\TextInput::make('name')->required(), Forms\Components\TextInput::make('email')->required(), Forms\Components\Select::make('organisation')->relationship('organisation', 'name'), Bottom line, If I am logged in as a customer, role "customers" should be pre-selected on the Users overview page. Thanks in advance! @all
4 replies