Questions tagged [laravel-filament]

143 questions
3
votes
1 answer

Add slug in the URL filament Laravel

I have PostResource in my filament application. Post modal schema Posts - id - title - slug - description - created_by - status Now, whenever I create a new post and it redirects to the Edit page and URL accessing like…
Mitesh Rathod
  • 879
  • 5
  • 18
3
votes
0 answers

Laravel Filament Issue with https on prod server

Since I migrated my app (but its just a blank project for now) when I try to access the admin login page, I have issues both with Chrome & Firefox. On Chrome, messages are : GET…
3
votes
5 answers

Laravel Php 8.1 how to convert enum cases to array for select input

I got this enum class of periods or terms: Term.php
Pathros
  • 10,042
  • 20
  • 90
  • 156
2
votes
1 answer

Filament PHP: Showing RelationManager Table trought Action

Is there any way to show the table that appears on the bottom of the edit page when I select an Event in my EventResource? I have a ParticipantRelationManager in the EventResource class and it works just fine, I just wanted to display the table in a…
2
votes
0 answers

Filamentphp - Builder

i have a problem with Builder https://filamentphp.com/docs/2.x/forms/fields#builder it don't save data in json columns. I have a model Post: protected $casts = [ 'audio' => 'json', 'audio_title' => 'json', ]; protected…
farhad
  • 31
  • 3
2
votes
1 answer

update the columns and data in the filamentphp table when a button is clicked from the view

I am using filamentphp in a project. I want to update the columns and data when a button is clicked from my view Here is what I have tried so far ListFines.php page class ListFines extends ListRecords implements HasTable { protected static…
StealthTrails
  • 2,281
  • 8
  • 43
  • 67
2
votes
0 answers

Showing private files inside filamentPHP admin panel

I would like to know if there is any way of showing private uploaded files inside filamentPHP admin panel. Only the authenticated user should be able to see it, since it is not in the public storage folder of Laravel. Their documentation does not…
Marcellin Khoury
  • 336
  • 5
  • 13
2
votes
1 answer

Laravel Filament Table Actions: url() not working

I'm using Filament to create a table. I have the following two functions in my Livewire class. The getTableRecordUrlUsing() function works as expected. The getTableActions() function spawns an error page saying "Missing required parameter for…
thc1967
  • 23
  • 1
  • 4
2
votes
1 answer

Access Parent Schema Value inside Repeater - Filament

I am trying to access field_1 value inside the repeater return $form->schema([ Select::make('field_1')->reactive()->options(['a','b','c']), Repeater::make('repeater_1')->schema([ TextInput::make('field_2')->default(fn (Closure $get)…
LIGHT
  • 5,604
  • 10
  • 35
  • 78
1
vote
0 answers

PHP FILAMENT attaching to a model with related table

I'd like to customize the attach select that is shown when I attach a resource to a course. The model to attach to has a relation to a related table (like a category of the resource). Table COURSE ... Table…
Seb
  • 217
  • 1
  • 4
  • 11
1
vote
1 answer

Filament PHP v3: Id does not get written in the database on disabled form-field

I am currently working on a Filament PHP app and I have a problem: I want to show the username of the creator of a note (in my case) and I want to make the field unmodifiable in Filament. So I have thought of this: Select::make('user_id') …
stevan06
  • 57
  • 4
1
vote
1 answer

Laravel Filament 3 Custom Page view props

I have created a custom dashboard page and replaced it with main dashboard page. It loads perfectly. And the stats widget is also shown. But the problem is I can't pass props to the blade view. The static function view that I wrote doesn't actually…
1
vote
1 answer

how to customize filament default dashboard?

As per filament documentation created a new file at app/Filament/Pages/Dashboard.php and also remove the original Dashboard class from filament.php Dashboard.php File Code: (https://i.stack.imgur.com/39INc.png) filament.php File Code: 'pages' => [ …
1
vote
1 answer

in Laravel filament, how I can add the relation manager to the create page?

I have added this command php artisan help make:filament-relation-manager ProductResource tags name and added in ProductResource public static function getRelations(): array { return [ TagsRelationManager::class ]; …
1
vote
1 answer

How to load custom data fro filament-tree package?

On laravel 9 filamenphp site I need to show data in tree and I found this https://github.com/solutionforest/filament-tree plugin. But source of this plugin is 1 table, not as in my case when I need to combine data from 3 sources and 2 of them are…
Petro Gromovo
  • 1,755
  • 5
  • 33
  • 91
1
2 3
9 10