how to use csrf in form laravel code example
Example 1: csrf token laravel
{{ csrf_token() }}
{{ csrf_field() }}
Example 2: laravel add crf token form
<form action="{{ url('my-url') }}">
@csrf
{{ csrf_token() }}
{{ csrf_field() }}
<form action="{{ url('my-url') }}">
@csrf