pratik
Can I create something like this in filament
@Adnan Yalahow Filament way is the TALL way. create custom filament page with custom view, Create blade components, use tailwind for styles, use Filament Modals, Filament actions and sprinkle some livewire and alpinejs.
Here are some useful blade components mentioned in the documentation : https://filamentphp.com/docs/3.x/support/blade-components/overview
4 replies
Create Policies for each Auth Model (Multi Panels)
If you are trying to achieve different polices for different panels you can do something like this in AuthServiceProvider:
Suppose you have two panel providers, AdminPanelProvider and CustomerPanelProvider, To use this implementation, you should have Admin related Models in App\Models\Admin directory and Customer related models in App\Models\Customer directory.
Also, Admin related policies in App\Policies\Admin and Customer related policies in App\Policies\Customer directory. The directory name is based on Panel's id.
5 replies
File (image) upload preview as grid
@Vitali Kartsivadze https://filamentphp.com/docs/3.x/forms/fields/file-upload#altering-the-appearance-of-the-file-upload-area
6 replies
Error when select data with afterstateupdated
There is no selected product ($state is null) after you clear the select field, what are you trying to achieve when no product is selected ?
you can just check if the $state is not null and wrap the logic in the condition.
11 replies
Modal Footer
I think one way to do this is by using the custom view : https://filamentphp.com/docs/3.x/actions/modals#adding-custom-modal-content-below-the-form
3 replies
Chart scales ticks
@CodeWithDennis Have you tried returning RAwJs instead of php array?
This is working for me .
As mentioned in the docs : https://filamentphp.com/docs/3.x/widgets/charts#setting-chart-configuration-options
13 replies
how can create custom action?
@Nima Hamidpour You can create custom actions using :
Inside of $table->actions([ //your action here ]) in
public static function table(Table $table) of the Resource.
Or you can create a new action class extending the base action class and use it on any table you like.
4 replies