Questions tagged [laravel-filament]

143 questions
0
votes
1 answer

How to fill the pivot table when creating a record using Filament

I'm traying to fill a pivot table between two tables using Filament equipos: Schema::create('equipos', function (Blueprint $table) { $table->id(); $table->string('nombre')->unique(); …
Juan Diaz
  • 3
  • 1
0
votes
1 answer

Laravel Filament library magic

I know Laravel use Facades and Containers that overload class methods, but when I read the documentation of Filament I see a method called by the Filament facade and this method is named "serving". So I decided to make a search with VS Code in all…
hunterd
  • 48
  • 8
0
votes
2 answers

Dynamically change form fields in Filament Laravel

Is it possible to generate new fields in a form based on a checkBoxList in filament dynamically, Lets say I have a product and I checked the color option on it then an input field appear to add the value to that color. Thanks in advance.
0
votes
1 answer

Products and Product Variants relationship. Adding variants through Filament

I am tasked to create a dashboard for an e-commerce business, in general, using Laravel Filament. While designing the database I made sure to include the feature of adding variants. As a result, I came up with 4 tables: product_options (Color,…
0
votes
1 answer

Laravel Filament admin panel Manage User Tokens

How can i display User Access Tokens and preform operations such as delete them ? I have tried Forms\Components\Repeater::make("tokens")->schema([ Forms\Components\TextInput::make('tokens.name') ]), but it doesn't show the Tokens
m.abdalla
  • 1
  • 2
0
votes
1 answer

Is there a way to use sortable() function in laravel filament that can be used to sort posts based on priority?

How do I implement a custom comparator function inside of the sortable() function in laravel filament? I have three priorities: high, medium and low and I want them to be sorted as high, medium and low or vice versa, not by ascending or descending…
0
votes
3 answers

images not showing using spatie media library in filamentphp

I am having trouble displaying the images uploaded using spatie media library with the filament admin panel. image for clarificatio This is the code for form schema : SpatieMediaLibraryFileUpload::make('thumbnail')->collection('posts') And this is…
0
votes
1 answer

Laravel filament multiselect from the comma separated list

I am trying to implement filament admin panel for a existing project. I would like to implement multiselect. Table structure is as below: Products id name categories 1 product-1 1, 2, 4 2 product-2 1, 2 3 product-3 2,…
apaleja
  • 395
  • 4
  • 8
  • 21
0
votes
1 answer

Filament SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry

When I create a new row in the table 'partidos' I get this message: 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ' That is ok, I know it is a duplicate entry, but I get an error page from Laravel. My question is, how I…
Juan Diaz
  • 3
  • 1
0
votes
1 answer

how to change color admin dashboard in filament

I'm a user filament version 2 in my Laravel 9 project And now I want to custom admin dashboard and change color by default. Summary: I want to customize the color in Laravel-Filament Admin Dashboard
BEyonDER
  • 11
  • 2
0
votes
1 answer

In Laravel Filament's form how precharge a textfield?

In a Form i need to obtain the max ('invoice_number') and add 1 before to show in TextForm::invoice_number -> disabled() Can anyone help me?? Thanks in advance!
Karin
  • 1
0
votes
2 answers

How can i get elements in select using by example, whereDoesntHave in Laravel 8 and Filament?

I've three tables Users, company and user_company (pivot). I need to, for example, associate users to a company in a form using select that show me only the user are nit associated to this company. Could anybody help me? Thanks in advance
Karin
  • 1
0
votes
1 answer

Laravel (filament). how to add mask reactive text input

Laravel (filament). how to add mask reactive text input ? this pattern does not work when input reactive TextInput::make('expire') ->reactive() ->required() ->length(5) ->mask(fn (Mask $mask) => $mask->pattern('00/00')) …
-1
votes
0 answers

How to store data in different table from a form in filamentphp?

I have a form where I get user email, phone, business name, and business address. Now I want to store user email & phone in users table but want to store business name & address in agents table. How to do that in filamentphp? I'm thinking that how I…
-1
votes
0 answers

PHP Filament v3 get current id of the model

My datamodel looks like this: one user has many participant one participant belongs to one user I want to show the name of the user in the ParticipantResource at the form header. How to I do that. What is the query for that?
stevan06
  • 57
  • 4
1 2 3
9
10