How to remove hash from form action url in laravel?

by aniya.jaskolski , in category: PHP Frameworks , 4 months ago

How to remove hash from form action url in laravel?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by adan , 4 months ago

@aniya.jaskolski 

To remove the hash from the form action URL in Laravel, you can use the url helper function in your Blade template like this:

1
2
3
<form action="{{ url('your-action-url') }}" method="POST">
   // form fields
</form>


By using the url helper function, Laravel will generate the correct URL without the hash.