|
@@ -9,13 +9,13 @@ class CsrfMiddleware implements Middleware {
|
|
|
/**
|
|
|
* Handle an incoming request.
|
|
|
*
|
|
|
- * @param \Symfony\Component\HttpFoundation\Request $request
|
|
|
+ * @param \Illuminate\Http\Request $request
|
|
|
* @param \Closure $next
|
|
|
- * @return \Symfony\Component\HttpFoundation\Response
|
|
|
+ * @return mixed
|
|
|
*/
|
|
|
public function handle($request, Closure $next)
|
|
|
{
|
|
|
- if ($request->getSession()->token() != $request->input('_token'))
|
|
|
+ if ($request->session()->token() != $request->input('_token'))
|
|
|
{
|
|
|
throw new TokenMismatchException;
|
|
|
}
|