I don’t use blade.php because the file is uploaded by the admin and goes into storage. And in the html file there is a form that can be filled in, and it always gets 419.
I have tried using @csrf but the tag can only be used if using the .blade.php file, then I also tried to use native php in the same folder as the html file, but it still doesn’t work
M Rasya Zildan A is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
8
It sounds like you’re trying to use a standard HTML form in Laravel, and you’re facing the 419 error due to CSRF token validation.
<form action="/your-form-route" method="POST">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<input type="text" name="name" placeholder="Enter your name">
<button type="submit">Submit</button>
</form>
2