skip program null
This commit is contained in:
@@ -30,7 +30,10 @@ class ResolveProgram
|
||||
|
||||
$subdomain = $parts[0];
|
||||
|
||||
$program = Program::where('sub_domain', $subdomain)->firstOrFail();
|
||||
$program = Program::where('sub_domain', $subdomain)->first();
|
||||
if (!$program) {
|
||||
return $next($request);
|
||||
}
|
||||
app()->instance('SystemProgram', $program);
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user