update to laravel 9

This commit is contained in:
xiaomlove
2022-03-31 22:22:04 +08:00
parent 09350c06e2
commit 5f6b3ceb53
30 changed files with 3420 additions and 2517 deletions
+3 -2
View File
@@ -17,11 +17,12 @@ class Platform
*/
public function handle(Request $request, Closure $next)
{
if (empty(nexus()->getPlatform())) {
$platform = nexus()->getPlatform();
if (empty($platform)) {
throw new \InvalidArgumentException("Require platform header.");
}
if (!nexus()->isPlatformValid()) {
throw new \InvalidArgumentException("Invalid platform: " . CURRENT_PLATFORM);
throw new \InvalidArgumentException("Invalid platform: " . $platform);
}
return $next($request);
}