We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad0977b commit 2cdf8feCopy full SHA for 2cdf8fe
.gitignore
@@ -3,3 +3,5 @@ tags
3
vendor
4
composer.lock
5
phpunit.xml
6
+.DS_Store
7
+
src/Middleware/IsVerified.php
@@ -22,7 +22,7 @@ class IsVerified
22
*/
23
public function handle($request, Closure $next)
24
{
25
- if( ! $request->user()->verified){
+ if( !is_null($request->user()) && !$request->user()->verified){
26
throw new UserNotVerifiedException;
27
}
28
0 commit comments