F
Filament12mo ago
Sael

POST

Do the filament forms automatically use POST method and do these also include @csrf? Searched through the internet and this is what I found to strengthen the security of my website.
6 Replies
DrByte
DrByte12mo ago
Yes.
Sael
SaelOP12mo ago
really? how? cuz when i typed php artisan route:list, most of routes are GET. Sorry for follow up, am a beginner.
DrByte
DrByte12mo ago
Filament automatically uses POST for submitting form data. And Laravel requires @csrf automatically, and Filament also uses it automatically.
Sael
SaelOP12mo ago
I see, is there some way to verify that?
DrByte
DrByte12mo ago
Filament pages use Livewire. All Livewire forms use the livewire/update route, which is POST:
POST livewire/update ................ livewire.update › Livewire\Mechanisms › HandleRequests@handleUpdate
POST livewire/upload-file ........ livewire.upload-file › Livewire\Features › FileUploadController@handle
POST livewire/update ................ livewire.update › Livewire\Mechanisms › HandleRequests@handleUpdate
POST livewire/upload-file ........ livewire.upload-file › Livewire\Features › FileUploadController@handle
Sael
SaelOP12mo ago
I see thank you. Also saw it using dev tools
Want results from more Discord servers?
Add your server