csrf token laravel
snippet in php

laravel meta csrf

user7469

$.ajaxSetup({
   headers: {
     'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
   }
});

csrf token laravel

user7719

{{ csrf_token() }}
{{ csrf_field() }}

laravel csrf token

user1082

<form method="POST" action="/profile">
    @csrf
    <input name="name">
  	<button type="submit">send</button>
</form>

laravel add crf token form

user3620

<form action="{{ url('my-url') }}">
   @csrf