Filament

F

Filament

Filament is a collection of beautiful full-stack components for Laravel.You can get help using it on our Discord.

Join

stancl/tenancy Path Identification error: Missing required parameter

Hello there! I'm using the package stancl/tenancy with Path Identefication, and I have the following error Missing required parameter for [Route: filament.tenant.pages.edit-tenant] [URI: app/{tenant}/edit-tenant] [Missing parameter: tenant]. Anyone could help me with this, I have this in my TenantPanelProvider, I don't know if I missing something for set up the route properly...
No description

File upload not working with zip files

I'm trying to setup a file upload for people to upload zip's, but it's not recognizing my settigns: ```php FileUpload::make('files') ->visibility('private') ->storeFileNamesIn('file_names')...
No description

how Enabling OPcache on cpanel

how Enabling OPcache on cpanel Local became fast, but it did not work on the server...

Making a Form Toggle read-only

I have a boolean field that I'd like to show as a toggle button, but I'd like to disable the button so it's read-only. There doesn't appear to be an attribute to do this. Or maybe I'm doing this the wrong way. Is there a better way to display a boolean and color code it? My is_current_member boolean is a calculated field, so the user can't control it (thus the need for read-only)....

Using FilamentPHP to create Landing Pages/Websites

I don't know if it's possible tho, but can I use FilamentPHP to create a very simple website to serve as an entry for my web app? My head keeps wrapping filament around "admin panel" and nothing more ๐Ÿ’”

recordClasses not applying

Hi, I have no idea why this is not working, only working the first one, green or red. ``` return $table...

Trying to call a view of another resource from a table

I am trying to call laptop assignment view from laptop table action. Tables\Actions\ViewAction::make() ->url(fn ($record) => route('filament.resources.laptop-assignments.create', ['record' => $record])) ]) ...

decimal value has inconsistencies/bugs in Column and Textinput

Bumped to very weird Filament "bug" today. Did some research in docs, Git, and here and found nothing. 1. have field price in database (MySQL): price` double(20,4) 2. have value in this field: 5.9400...

Login auth check if user is admin

Hi, I added a bool value "is_admin" to the users to check, if the user is allowed to login to the backend. Now, I want to integrate the check, but I don't know how I should do that. Why? I want to use the users table to interact with user values in the frontend. some users are admins and should be able to login to the backend. It might be possible to remove admin-status of several users or add the admin status....
Solution:
``` public function canAccessPanel(Panel $panel): bool { return $this->is_admin; }...

CustomersPanelProvider in Breezy? Why Customers and not AdminPanel...

I have a fresh filament project and i wanna configure breezy. First adding the class to your Filament Panel's plugin() But i dont have a CustomersPanelProvider ? Can i use AdminPanelProvider or i have to create a Customer(s)-Panel.? Next ->authGuard('customers'), same questiion.
Solution:
``` BreezyCore::make() ->myProfile( hasAvatars: true, )...

Debugbar not showing bindings info and backtrace info

This is the first time i got this kind of problem. Does anyone else have this problem?
No description

Activate stephenjude-two-factor-authentication?

hi, i tried stephenjude-two-factor-authentication. I think it works. I can enable (and disable) 2FA but doesnt matter, there is no effect after logout / login. I dont have to put in a code. Maybe the reason is the code in user.php. ```public function canAccessPanel(Panel $panel): bool { if ($panel->getId() === 'admin') { // return $this->hasRole('super_admin'); // placeholder...
Solution:
Thanks for your work. I have also a fresh project and i am looking for a 2fa. I tried breezy, but have failed. But 2fa from Rawilk works for me. This is not anymore listet. Evereybody reccomend breezy. Maybe i trie it again. But at the end i am looking for an 2fa with email code (only), similar like github. Can breezy email code 2fa? Or can you recommend another (less complicated) plugin? It is also important to me that users can switch it on and off for themselves.

Question about unit testing in Filament

I would like to know why are the unit test resources so lacking? Are they too easy, or do people not work with them?

Submit button when editing table data

Hi, I am new to laravel and filament, in a table I have several fields that can be updated such as date and some booleans: After some states have been updated I want to send customers a mail with an update regarding their order. Problem is that I do not want these mails to be directly sent and I'd rather have a submit button in the corner that the changes to the table can be submitted to prevent incorrect mails being send....

"The model [App\Models\Team] does not have a relationship named [leads]." (Multi-tenant + Modules)

I'm writing a Multi-tentant app with Filament V3, but this app uses the Modules structure (using nWidart/laravel-modules and savannabits/filament-modules libraries) The problem is that Multi tenancy requires that the "Team" (so the tenant model) contains a relationship function to each of my Models, but in my case I can have "dynamic" models that can change by the Modules i'm using, so it's impossible to know and implement all the relationship methods in Teams (also this model potentially can get too long and a mess if the app gets more complex). Is there anyway to workaround this or disable this requirement?...

Custom Filter

Hello all, Please I want to create filter as image attached, which the user can write (id or name or email ) and the result should appear like the image. Thanks for always support....
No description

Show a navigation item for each type entry that exists

Hello in my app i have a location model. the location model has a relation with a type model. when i click on the locations navigation item i want a sub navigation to open where i can select which type of location i want to see. so if i have a type of town and city. i want two navigation items to appear. a town and a city navigation item. when clicking one of them i want it to show a table with either all locations of type town or city. depending in which one you clicked. is there a way to do t...

How to personalize make:filament-user command ?

Is it possible to add fields when using make:filament-user ? Is it possible to make some post operations like assign some roles when user is created using this command?
Solution:
Just make your own command to make a user with the prompts you need. Itโ€™s still just laravel under the hood. Thereโ€™s nothing different from a filament user and a normal laravel user.

Push notification on error 500

How to push notification when there's an error instead of showing modal?