and @csrf inside the form
for example:
<form action="/submit" method="POST"> @csrf <label for="name">Name:</label> <input type="text" id="name" name="name"> <button type="submit">Submit</button> </form>