Questions tagged [laravel-filament]
143 questions
0
votes
0 answers
How to export filtered table data to PDF in Filament using DomPDF?
I'm new to Filament and I have a question. I'm using default filters in my Filament project, I want to export only filtered table data to a PDF using DomPDF. For instance, 10 records are in the database, and after using the filter only 3 reflect in…

syed
- 1
- 3
0
votes
2 answers
How to get stored data in laravel filament afterCreate()
Laravel filament has afterCreate function that will trigger after data has been stored in the database
protected function afterCreate(): void
{
// Runs after the form fields are saved to the database.
}
The question is, how do I get the 'stored'…

Amir
- 86
- 7
0
votes
0 answers
How can the FileUpload field in Laravel Filament directory be changed dynamically?
I have a form with a file upload. When i upload the file, it saves into my desired public/uploads/documents location. However, i want every user should save it's files public/uploads/documents/userfolder based on user foldername on my client's…

Frederick Osei
- 1
- 1
0
votes
0 answers
Is it possible to add the CRUD actions to a infolist in Filament PHP v3?
I want to give the user ability to change stuff in the table, so is it possible to apply crud-opertaion-actions to my table inside a infolist.
Currently nothing appears but the crud-actions are set, so what should i do get it to appear?
public…

stevan06
- 57
- 4
0
votes
1 answer
Im trying to pluck more than one value in PHP Filament v3
I am trying to pluck more than one value. I want firstname and lastname. How do i get both values to show up.
SelectFilter::make('participant_id')
->attribute('participant_id')
…

stevan06
- 57
- 4
0
votes
1 answer
How can I show related columns in a table in PHP Filament v3
I have two tables Advisors and AdvisorRegions and the relation looks like this.
One advisorRegion has many advisors and one advisor has one advisorRegion.
Now I want to show the name of the advisorRegion in the advisors-resource table.
I have the…

stevan06
- 57
- 4
0
votes
3 answers
How can i automatically insert the current user_id after submitting a form in Filament v3.0
I'm currently working on a project in FilamnentPHP v3 and I am trying to figure out how to automatically pass the current user_id to my database-entity.
I thought of creating a hidden input-field and setting the default value of the field to the…

Vlajic Stevan
- 1
- 2
0
votes
1 answer
Filament Many To Many Relation Manager , not working
I have the model Student
Student
groups : BelongsToMany
and model Group
Group
students: HasMany
of course there is a pivot table group_student with
group_id
student_id
I am trying, in Filament3, to set up a StudentRelationManager , so that I can…

bachstein
- 23
- 4
0
votes
2 answers
(PHP Filament) How to disable the default dashboard?
First question
I am currently learning PHP-Fiament and I can not figure out how to disable the default-dashboard.
My other question is:
Why isnt the Stack below centered?
public static function table(Table $table): Table
{
return $table
…

Vlajic Stevan
- 1
- 2
0
votes
1 answer
Laravel Filament v2 - $this->record doesn't exist when using a simple resource
Title pretty much says it all, I'm exploring Filament v2 and trying to make a simple modal that creates a user, manipulates the password to be a random string, and then fires an email once saved. When I used this code on a normal resource,…

Andy Holmes
- 7,817
- 10
- 50
- 83
0
votes
1 answer
Uncaught (in promise) SyntaxError: Unexpected token '<', "
Im using filamentphpv2 for the admin panel, but I get a blank login screen without any errors, then when I enter the login credentials and click login nothing happens, but an error message appears in the console.
I have no idea how I could fix it,…

Benjji
- 21
- 4
0
votes
0 answers
Laravel filament multiple dashboards in the same account
In the same 'user', after authentication, I want to have a page with a select dropdown where different 'partners' can be chosen, and then a dashboard showing the specific data of the chosen account.
im usign laravel and filament
I'm thinking of…

Ale
- 3
- 2
0
votes
1 answer
Laravel Filament big file upload error in cPanel
I'm using Laravel Filament admin panel for my project. The issue is that I can't upload a 50MB PDF file in the live project.
I updated max_file_size and max_file_upload in my cPanel & checked everything, but I still can't upload the large file. The…

Nihir Zala
- 1
- 2
0
votes
1 answer
Insert the same table widget multiple times with a param (FilamentPhp)
I need to create a widget to display the last records in a table within a category and reapeat that for every category matching certain criteria. The problem here is that I haven't found a way to do this without manually creating a widget for every…

Branpg
- 3
- 2
0
votes
0 answers
Creating a dynamic repeater based on conditions and numeric values upon selecting an option from a Select box in FilamentPHP
I am developing an application using Laravel FilamentPHP. However, I have a specific requirement where I want to create a dynamic repeater based on the selected option from a Select box, considering certain conditions and numeric values. Once the…

Batuhan Hazar GÜLER
- 13
- 4