Skip to content

Commit abe08a7

Browse files
authored
Merge pull request #1470 from KodeStar/2.x
Fix importing apps and logging in
2 parents 4fa41d8 + 6075dcc commit abe08a7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/Http/Controllers/ItemController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public static function storelogic(Request $request, $id = null): Item
322322
'user_id' => $current_user->getId(),
323323
]);
324324

325-
if ($request->input('appid') === 'null') {
325+
if ($request->input('appid') === 'null' || $request->input('appid') === null) {
326326
$request->merge([
327327
'class' => null,
328328
]);

config/auth.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,11 @@
99
'hash' => false,
1010
],
1111
],
12+
'providers' => [
13+
'users' => [
14+
'driver' => 'eloquent',
15+
'model' => App\User::class, // Update this to the correct namespace
16+
],
17+
],
1218

1319
];

0 commit comments

Comments
 (0)