Level 75
method="POST" is important, because default method is GET for form.
<form action="{{ route('admin.settings.update') }}" method="POST" enctype="multipart/form-data">
@csrf
</form>
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello , i have a form with post method when i put this in the form
Route::post('update', 'SettingController@update')->name('admin.settings.update');
just when i put this enctype="multipart/form-data" in the form , the form send as GET and gives error that Get not supported for this route , but when i remove this enctype="multipart/form-data" every thing goes ok . thanks
Please or to participate in this conversation.