mcdc
Restrict user to view certain Navigation Group
Thanks I just discover, by using https://github.com/bezhanSalleh/filament-shield
I can just use, to restrict or redirect user without type super_admin
11 replies
Form in customize page
by simple running this command
php artisan make:filament-page NameOfYourPage --resource=UserResource
you will be able to get a page, or you can remove --resource=UserResource
if you dont want to include it.4 replies
Custom EloquentBuilder based on current user
(Feel free to remove this, if its confusing to the actual question)
Sorry I am just learning to code and Im not really familiar of some terminology, so Ill just post here whit my full code. Inside
MyWork.php
(custom page, sorry for not good naming convention)
This line $this->taskWork = Task::whereRaw('JSON_CONTAINS(assignee_id, \'["' . $userId . '"]\')')->get();
I can make this simplier by using pivot table task_user
but I haven't figure it yet.
And then I can call this $this->taskWork
to my custom blade/views by simply
@foreach($taskWork as $work) //do something @endforeach
11 replies
Multiple headerActions on export plugins
Try to use this on your AppServiceProvider
https://github.com/pxlrbt/filament-environment-indicator#indicators
28 replies
Multiple headerActions on export plugins
I already open an issue for this
Missing Documentation
https://github.com/pxlrbt/filament-environment-indicator/issues/728 replies
Multiple headerActions on export plugins
I use this environment-indicator
FilamentEnvironmentIndicator::configureUsing(function (FilamentEnvironmentIndicator $indicator) {
$indicator->showBadge = fn () => false;
$indicator->showBorder = fn () => true;
}, isImportant: true);
I dont know whats the provider I use for this on my AppServiceProvider
28 replies