Skip to content

Commit fd6a074

Browse files
committed
removed static log method / updated required php version
1 parent e3de340 commit fd6a074

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131
],
3232
"require": {
33-
"php": ">=7.1",
33+
"php": ">=7.2",
3434
"illuminate/auth": "^6.0",
3535
"illuminate/container": "^6.0",
3636
"illuminate/contracts": "^6.0",

src/PermissionServiceProvider.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22

33
namespace Maklad\Permission;
44

5-
use Illuminate\Contracts\Auth\Access\Gate;
65
use Illuminate\Support\ServiceProvider;
76
use Illuminate\View\Compilers\BladeCompiler;
87
use Maklad\Permission\Contracts\PermissionInterface as Permission;
98
use Maklad\Permission\Contracts\RoleInterface as Role;
109
use Maklad\Permission\Directives\PermissionDirectives;
1110
use Illuminate\Support\Facades\DB;
12-
11+
use Illuminate\Support\Facades\Log;
1312
/**
1413
* Class PermissionServiceProvider
1514
* @package Maklad\Permission
@@ -46,7 +45,7 @@ public function boot()
4645
DB::connection()->getPdo();
4746
app(PermissionRegistrar::class)->registerPermissions();
4847
} catch (\Exception $e) {
49-
\Log::error("Could not connect to the database. Please check your configuration. error:" . $e);
48+
Log::error("Could not connect to the database. Please check your configuration. error:" . $e);
5049
}
5150
}
5251

0 commit comments

Comments
 (0)