Skip to content

Commit

Permalink
Merge pull request #28335 from fedorovvldmr/5.8
Browse files Browse the repository at this point in the history
[5.8] Add custom message to thrown exception
  • Loading branch information
taylorotwell authored Apr 26, 2019
2 parents 6ec47de + 60dcf79 commit 12cf3f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function handle($request, Closure $next)
});
}

throw new TokenMismatchException;
throw new TokenMismatchException('CSRF token mismatch.');
}

/**
Expand Down

1 comment on commit 12cf3f4

@haskicbr
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOL

Please sign in to comment.