Dhru
How to: Action group dropdown grid layout
Ah okay just publish the theme and override the relevant .css
A “theme” in filament is just the .css file
Since all you are doing is updating the css will not break anything with updates (beyond maybe the styling)
https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
7 replies
How to: Action group dropdown grid layout
the easiest way would be to use a nested dropdown but it wouldn't give you that exact layout.
https://filamentphp.com/docs/3.x/actions/grouping-actions
not sure if extraattributes works with actiongruops but that would the next step I would try (see if i can achive that with a tailwind class)
if not possible with either of those two can extend the actiongroup class and create your own blade view with the layout you want and use an instance of that extenededclass in your project
7 replies
FiltersLayout
I haven’t done it, but my guess is you need to extend the filers layout component and create a custom component class / view with a blade template(essentially creating a new livewire component.
This tutorial explains how to do that for forms and next one with an info list etc but is the same idea for any of the view components
https://filamentphp.com/docs/3.x/forms/layout/custom
Another approach if you can do it via pure css is you can publish a theme and edit the .css
Finally also just publish the views and directly change the html of the existing component but will break updates / be less maintainable
2 replies
tabs on relation manager position start, is that possibe?
Not sure but you can probably do this with just .css don’t need to override the html etc.
So just publish a theme look up what the filament identifier is for the tabs
And try to align left
13 replies
Restrict non filament panel user, accessing filament admin panel.
this how i solved a similar problem (changed a few things from my code to remove some extra logi but the basis are
first you need to add this to your panel provider (will usually be called adminpanelprovider.php and will be in app/http/providers/filament/ directory in your laravel project)
->authMiddleware([ Authenticate::class, \App\Http\Middleware\VerifyAccessStatus::class, ]);Then create the logic for this class
namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; use Symfony\Component\HttpFoundation\Response; class VerifyAccessStatus { public function handle(Request $request, Closure $next): Response { // logic goes here // if admin etc. //return redirect()->route // return $next($request); } }
8 replies
Logout Route
https://filamentphp.com/content/tim-wassenburg-how-to-customize-logout-redirect
here is a tutorial for your exact problem, I just implemented it and it works fine for me
9 replies
Help Us Improve Filament’s Docs & Education in v4
i had the same issue
This is not a good fit for the docs, but I would love to see one of the content creators make a tier list of filament customization options ranked in terms of effort it takes. maybe one for tables, one for forms etc.
81 replies
Optimizing file upload for large files avoid slow move on save
https://filamentphp.com/docs/3.x/forms/fields/file-upload#moving-files-instead-of-copying-when-the-form-is-submitted
I think you are looking for the ->moveFiles()
Method
8 replies
Filament Form + Livewire: Updating Field Without Saving to Database
maybe something like...
Action::make('example')
->label('Generate Example")
->action(function ($livewire) {
$form = $livewire->form->getState();
$form["example"] = "example text";
$livewire->form->fill($form);
}),
6 replies
Automatic Sum of Selected Bulk Action item column
I think there are a basic of issues beyond stuff that requires data back and forth via livewire with the bulk actions that I outlined in a discussion here
https://github.com/filamentphp/filament/discussions/15576
Didn't seem to be much interest. But let me review the contribution guidelines and see if I can make a PR
8 replies