I am making an API for my website, API will be used to get, post, delete some data, but to post, csrf token is needed which cannot be generated from third party websites, so I have to disable csrf token for some routes. In documentation it says to add following in verifycsrftoken.php:
protected $except = [
'leads',
'leads/*'
];
But this is not working in laravel 5.4. Here is my sample route:
Route::post('leads/{id}', ['as'=>'leads']);
Any help would be appreciated.