diff --git a/app/Http/Controllers/ItemController.php b/app/Http/Controllers/ItemController.php index c0d9fdf9f..d5c685ee2 100644 --- a/app/Http/Controllers/ItemController.php +++ b/app/Http/Controllers/ItemController.php @@ -322,7 +322,7 @@ public static function storelogic(Request $request, $id = null): Item 'user_id' => $current_user->getId(), ]); - if ($request->input('appid') === 'null') { + if ($request->input('appid') === 'null' || $request->input('appid') === null) { $request->merge([ 'class' => null, ]); diff --git a/config/auth.php b/config/auth.php index 1642fb24f..d31130b45 100644 --- a/config/auth.php +++ b/config/auth.php @@ -9,5 +9,11 @@ 'hash' => false, ], ], + 'providers' => [ + 'users' => [ + 'driver' => 'eloquent', + 'model' => App\User::class, // Update this to the correct namespace + ], + ], ];