How to remove hash from form action url in laravel?

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

How to remove hash from form action url in laravel?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by adan , 10 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.

Related Threads:

How to remove php extension form url with .htaccess?
How to remove id from url in laravel?
How to remove public from url in laravel?
How to remove index.php from the url in laravel?
How to decrypt hash password in laravel?
How to pass hash into url from page to iframe?