Questions tagged [laravel-filament]

143 questions
0
votes
4 answers

Remove create button inside filamentPHP view

I am currently working on a Laravel project using filamentPHP. However I cannot find a way to delete the create functionality for a specific resource. Considering there is a resource named Customer, in the view page, I would like to remove the new…
Marcellin Khoury
  • 336
  • 5
  • 13
0
votes
1 answer

Problem with Laravel site in production: livewire.js and app.js get 404

Today I put on production a site with a Dashboard based in FilamentAdmin. I'm working perfectly on local. But in production, after a problem with login, check with developers tools two…
abkrim
  • 3,512
  • 7
  • 43
  • 69
0
votes
1 answer

Filament translation navigationLabel

I'm looking for in doc how to translate navigationLabel of a resource I've tried public static function setNavigationLabel(?string $navigationLabel): void { self::$navigationLabel = __('filament::pages/town-halls.TownHall'); } and create a file…
abkrim
  • 3,512
  • 7
  • 43
  • 69
0
votes
1 answer

Filament php Toggle

How I can use toogle for insert data( 0 1) to database? I couldn't find this question's answer from Google in two days. Toggle::make('is_active') I write code as above but it doesn't work. It works as button but not change data on database.
VurgunG
  • 1
  • 2
0
votes
1 answer

Laravel Filament. with options and default value

I have a piece of code that I think is quite improvable. In a DomainResource in the form() method, I have a circular relationship. (the only way I saw viable since I don't like the current ideas about having two guards in Filament) The model has a…
abkrim
  • 3,512
  • 7
  • 43
  • 69
0
votes
1 answer

Eloquent query with subquery

Since three days I'm working on following problem: protected function getTableQuery(): Builder { return User:: where('age','>',21) ->AppendDistanceTo( $this->city->geo->long, …
photojo
  • 21
  • 1
0
votes
0 answers

Laravel Filament crop Image before upload

When I call the method FileUpload::make('image')->imageCropAspectRatio('1:1') on Filament, the image is cropped only after the upload. However, I would like the user to be able to choose which area is cropped, so like when using Cropper.js for…
Ameise
  • 35
  • 3
0
votes
2 answers

Creating multiple records with a single laravel filament form

I have a form in my Filament resource and for each textarea I would like to create a new record. I can't figure out how to do this. The form: return $form ->schema([ Forms\Components\Select::make('quiz_id') …
Tim Reynaert
  • 145
  • 5
  • 19
0
votes
1 answer

How can I Build a Filament Table with Model Array Column

I want to ask a question about Laravel Filament Table. I have a model which has a column with array. I want to visualize that array column with Filament query builder. My Model Column is like; [ 'name' => 'result', 'name2' => 'result2' ] My…
Mahodroid
  • 43
  • 7
0
votes
1 answer

laravel filament implementing dark mode does not work

I turned it to true but it doesn't work also when i change another thing also doesn't work like: 'sidebar' => [ 'is_collapsible_on_desktop' => true, 'groups' => [ 'are_collapsible' => true, ], …
0
votes
2 answers

Digital Ocean - App Platform - Laravel Filament

I'm in the process of hosting a full stack app. For the frontend I'm using Next JS for the frontend and for the backend Laravel with filament as a dashboard. I tried to host everything on Digital Oceans App Platform where I gave the frontend the…
0
votes
1 answer

Cannot add or update a child row when updating records

I am working with an e-commerce db. My task is to make CRUD ops for products and product variants. Here'sthe db I'm working with: When updating product_option_values everything works properly. But when updating product_options which results in…
0
votes
1 answer

Filament Dependent Modals

I have a repeater that contains a select (option) and a multi-select (values) where I added a create form for both so the user can add an unexisting option/value. But values are option dependent so I am trying to pass the option_id from the repeater…
0
votes
2 answers

Laravel Filament Need to list table with same model with 2 different queries

Laravel filament and resource have the same model and data is in two different tables as is_admin = 0 and is_admin = 1 and I need to list, how can I do this in the same user table with the filament. I used custom page but I couldn't make tables and…
0
votes
0 answers

pivot table between remote database and local database

so i have model A who is using local database connection, and model B that is using remote database. i am using laravel with filament and i have created a many to many relationship between model A and model B,i was able to get all Model B values on…