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 fe6f8aa commit f6beaacCopy full SHA for f6beaac
src/Config/quickadmin.php
@@ -27,6 +27,9 @@
27
28
// If set to true, you'll need to copy the routes
29
// from vendor/laraveldaily/quickadmin/src/routes.php into your own /routes folder
30
- 'standaloneRoutes' => false
+ 'standaloneRoutes' => false,
31
+
32
+ // Used to define relationship with UserLogs
33
+ 'userModel' => \App\User::class
34
35
];
src/Models/UsersLogs.php
@@ -14,6 +14,6 @@ class UsersLogs extends Model
14
15
public function users()
16
{
17
- return $this->hasOne('App\User', 'id', 'user_id');
+ return $this->hasOne(config('quickadmin.userModel'), 'id', 'user_id');
18
}
19
-}
+}
0 commit comments