<meta name="csrf-token" content="{{csrf_token()}}"> is it valid for laravel 5.6 code example
Example 1: laravel meta csrf
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
Example 2: laravel csrf token
<form method="POST" action="/profile">
@csrf
<input name="name">
<button type="submit">send</button>
</form>