Wiin
Wiin
FFilament
Created by Wiin on 6/20/2024 in #❓┊help
Edit Action in table in custom livewire component not showing fields in modal
No description
5 replies
FFilament
Created by Wiin on 4/8/2024 in #❓┊help
Problem with gzip middleware
Hello, for some reason when setting up my gzip middleware I'm getting a blank page on filament panels. The middleware is working fine for non-filament pages. I think the problem is related to some script not loading correctly after decompressing, but I'm not completely sure. Does anyone have any idea of what could be happening? Thanks. //Middleware class GzipEncodeResponse { /** * Handle an incoming request. * * @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next */ public function handle(Request $request, Closure $next): Response { $response = $next($request); if (in_array('gzip', $request->getEncodings()) && function_exists('gzencode')) { $response->setContent(gzencode($response->getContent(), 9)); $response->headers->add([ 'Content-Encoding' => 'gzip', 'X-Vapor-Base64-Encode' => 'True', ]); } return $response; }
4 replies
FFilament
Created by Wiin on 8/10/2023 in #❓┊help
Relationship search in belongsTo select
Hello, is it possible to make a relationship search for a resource relationship? I have this for example: Forms\Components\Select::make('contact_id') ->relationship(name: 'contact', titleAttribute: 'email') ->searchable(['first_name', 'last_name', 'email', 'organisation.name']) ->required(), This is not working because 'organisation.name' is not a valid column. Is it possible to do it or do I have to do it differently so I can search contacts by their organisation name? Thank you!
5 replies
FFilament
Created by Wiin on 8/8/2023 in #❓┊help
Setting $panel->path('') causes route not defined error
Hello, I've recently started using filament v3 and when creating the panel if I try to set the path without prefix like this: return $panel ->default() ->id('admin') ->path('') The app throws this error: Route [filament.admin.auth.login] not defined. But if I set the path to something else like ->path('app') and go to /app it works perfectly. Any idea what could be causing the error? I'm using the stancl/multitenancy library too, but I don't think it has anything to do with the error.
7 replies