Skip to content

Commit 48ccf63

Browse files
committed
Update for Laravel 5.5
1 parent 0205fe9 commit 48ccf63

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

composer.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"require": {
1212
"php": ">=7.0.0",
1313
"genealabs/laravel-casts": "*",
14-
"illuminate/support": "5.4.*"
14+
"illuminate/support": "5.*"
1515
},
1616
"require-dev": {
1717
"doctrine/dbal": "^2.5",
@@ -38,6 +38,13 @@
3838
"GeneaLabs\\LaravelGovernor\\Tests\\": "tests/"
3939
}
4040
},
41+
"extra": {
42+
"laravel": {
43+
"providers": [
44+
"GeneaLabs\\LaravelGovernor\\Providers\\LaravelGovernorService"
45+
]
46+
}
47+
},
4148
"config": {
4249
"preferred-install": "dist"
4350
}

database/seeds/LaravelGovernorRolesTableSeeder.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ class LaravelGovernorRolesTableSeeder extends Seeder
77
{
88
public function run()
99
{
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()));
1212

1313
$role = (new Role)->firstOrCreate([
1414
'name' => 'SuperAdmin',

0 commit comments

Comments
 (0)