added api for tracking

This commit is contained in:
Frank John Begornia
2020-11-27 02:43:26 +08:00
parent 36ad67a37a
commit d2a20c4831
12 changed files with 213 additions and 8 deletions

View File

@@ -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);
}
}