added api for tracking
This commit is contained in:
@@ -13,9 +13,23 @@ class VerifyCsrfToken extends BaseVerifier {
|
||||
* @return mixed
|
||||
*/
|
||||
|
||||
protected $except = [
|
||||
"api/*",
|
||||
];
|
||||
|
||||
// public function handle($request, Closure $next)
|
||||
// {
|
||||
// return parent::handle($request, $next);
|
||||
// }
|
||||
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
return parent::handle($request, $next);
|
||||
foreach($this->except as $route) {
|
||||
if ($request->is($route)) {
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
return parent::handle($request, $next);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user