qcol
Dilemmas during installation.
I'm familiar with Laravel, I'm just not sure what the Laravel installer is supposed to do and what the Filament installer is supposed to do. You have to admit it's not clear since the documentation lists Livewire as ‘Requirements’ which suggests it should be installed BEFORE installing Filement, but it appears that Filament does this itself during installation (unlike Laravel). A lot of forum posts (and here) suggest installing Breeze, so I also don't know if a simple basic migration of the users table is enough, or if Breeze is advisable? Don't you think it would be great for this to be clearly described at the beginning of the documentation? This is just a simple user suggestion....
6 replies
Use Notification for error 500 in production
Hi! Also, I am looking for a solution so that the customer receives a simple notification instead of the "ERROR 500" screen.
Unfortunately this solution does not work for me. I pasted the code into app.js, in the .env I have
APP_DEBUG=1
VITE_APP_DEBUG=true
What other conditions need to be met for this to work?
6 replies
unwanted "order by" in modifyQueryUsing - how to disable it?
Thank you for your suggestions. I solved it with 2 steps:
1. forcing sort ->defaultSort('product_id')
2. after Error "getTableRecordKey(): Return value must be of type string, null returned", changed key:
public function getTableRecordKey(Model $record): string
{
return $record->product_id;
}
11 replies
unwanted "order by" in modifyQueryUsing - how to disable it?
I don't have filters or default sortings here. As I wrote, I also made sure the query works correctly with sql mode strict (the query works correctly in phpmyadmin when you remove the sorting part). It seems to me that Filament sticks the default sorting by ID which in this case is the problem.
11 replies
Dynamic Select Fields
I had a similar problem, in the end I built a custom page with tree form instead of a table. This extension helped a lot:
https://github.com/staudenmeir/laravel-adjacency-list
5 replies
Hierarchy tables
Maybe this will help? https://blog.codecourse.com/recursive-nested-data-in-laravel
38 replies
Call to a member function getKey() on null
I finally eliminated the error by returning $livewire->getRelationship()->getModel() at the end of the class; but you're right, I made it unnecessarily confusing, I think I'll create a custom action.
5 replies
Nested relationships
The way I do it so far is that I create a resource for the second level of nesting and then to it a relation-manager that handles level 3. From the second level, just refer to the next nesting using ->url on any of the columns. On the last level, it's still a good idea to make a [return] button that will take you back to level 2.
15 replies
Nested relationships
I think this is on the todo list https://github.com/filamentphp/filament/issues/7104
15 replies
Nested resource
A modal window with a table of relational records would be ideal, but editing such a record is calling another modal window.
The second option is to display a table that will appear in place of the table from which it was called + a "Back" button that returns to the parent table. The latter option is probably easier, so far, however, I don't know how to go about it 😦 Time to delve more into Livewire 🙂
7 replies