What is CSRF?
CSRF stands for Cross Site Request Forgery and it’s a web attack that forces a user to make unintended requests to a web application where they are previously authenticated.
Implementation:-
CSRF is implemented within HTML forms declared inside the web applications. You have to include a hidden validated CSRF token in the form so that the CSRF protection middleware of Laravel can validate the request. The syntax is shown below.
<form method = "post" action="devopsschool.php" > | |
{{ csrf_field() }} | |
<label> Email </label> | |
<input type = "text" name = "email"/> | |
<br/> | |
<label> Message </label> | |
<input type = "text" name = "message"/> | |
<input type = "submit" name = "submitButton" value = "submit"> | |
</form> |



MotoShare.in is your go-to platform for adventure and exploration. Rent premium bikes for epic journeys or simple scooters for your daily errands—all with the MotoShare.in advantage of affordability and ease.