I solved this issue by add
$params = [
'_token' => csrf_token(),
'name' => 'Test name',
];
Because every request have VerifyCsrfToken middleware, so we must add '_token' => csrf_token(), to method put, post and delete.
Where did you add this?
Ah! To the the request via call() or post().
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.