File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 11
11
"require" : {
12
12
"php" : " >=7.0.0" ,
13
13
"genealabs/laravel-casts" : " *" ,
14
- "illuminate/support" : " 5.4. *"
14
+ "illuminate/support" : " 5.*"
15
15
},
16
16
"require-dev" : {
17
17
"doctrine/dbal" : " ^2.5" ,
38
38
"GeneaLabs\\ LaravelGovernor\\ Tests\\ " : " tests/"
39
39
}
40
40
},
41
+ "extra" : {
42
+ "laravel" : {
43
+ "providers" : [
44
+ " GeneaLabs\\ LaravelGovernor\\ Providers\\ LaravelGovernorService"
45
+ ]
46
+ }
47
+ },
41
48
"config" : {
42
49
"preferred-install" : " dist"
43
50
}
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ class LaravelGovernorRolesTableSeeder extends Seeder
7
7
{
8
8
public function run ()
9
9
{
10
- $ user = app ()->make (config ('genealabs-laravel-governor.auth-model ' ));
11
- $ superuser = $ user ->find ($ user ->min ($ user [ ' primaryKey ' ] ));
10
+ $ users = app ()->make (config ('genealabs-laravel-governor.auth-model ' ));
11
+ $ superuser = $ users ->find ($ users ->min ($ users -> getKeyName () ));
12
12
13
13
$ role = (new Role )->firstOrCreate ([
14
14
'name ' => 'SuperAdmin ' ,
You can’t perform that action at this time.
0 commit comments