Eugen Pașca
The POST method is not supported for route admin/login for custom login page
the error you get "The POST method is not supported for route admin/login. Supported methods: GET, HEAD" means that livewire/livewire.js is not loaded. or at least this happens for me.
the problem you are facing is that livewire/livewire.js is a route and your server tries to load it as a file.
Try to check the vhost config or try to publish the livewire files.
in my case the problem from vhost was this line . If you remove the JS from that list it would work. But i think the vendor:publish method is better
php artisan vendor:publish --force --tag=livewire:assets
5 replies
Access record data
you could inject the Component into your required method in your form ( https://filamentphp.com/docs/3.x/forms/advanced#injecting-the-current-livewire-component-instance )
Or if you really need to access the record data, i managed to do that including the form method directly into the view/edit Pages.
there it would not be static anymore so it should have access to the record
8 replies