find this file project\app\Http\Middleware\VerifyCsrfToken.php then find this array $except =['url/*'] this * indicates to your function