1 | <?php |
||
10 | class PermissionServiceProvider extends ServiceProvider |
||
11 | { |
||
12 | /** |
||
13 | * Bootstrap the application services. |
||
14 | */ |
||
15 | public function boot() |
||
16 | { |
||
17 | $this->publishes([ |
||
18 | __DIR__.'/../resources/config/laravel-permission.php' => $this->app->configPath().'/'.'laravel-permission.php', |
||
19 | ], 'config'); |
||
20 | |||
21 | if (! class_exists('CreatePermissionTables')) { |
||
22 | // Publish the migration |
||
23 | $timestamp = date('Y_m_d_His', time()); |
||
24 | $this->publishes([ |
||
25 | __DIR__.'/../resources/migrations/create_permission_tables.php.stub' => $this->app->databasePath().'/migrations/'.$timestamp.'_create_permission_tables.php', |
||
|
|||
26 | ], 'migrations'); |
||
27 | } |
||
28 | |||
29 | $this->mergeConfigFrom( |
||
30 | __DIR__.'/../resources/config/laravel-permission.php', |
||
31 | 'laravel-permission' |
||
32 | ); |
||
33 | $this->registerModelBindings(); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Finish configuring the application. |
||
38 | * |
||
39 | * @param PermissionRegistrar $permissionLoader |
||
40 | */ |
||
41 | public function booted(PermissionRegistrar $permissionLoader) |
||
42 | { |
||
43 | $permissionLoader->registerPermissions(); |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * Register the application services. |
||
48 | */ |
||
49 | public function register() |
||
50 | { |
||
51 | $this->registerBladeExtensions(); |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * Bind the Permission and Role model into the IoC. |
||
56 | */ |
||
57 | protected function registerModelBindings() |
||
64 | |||
65 | /** |
||
66 | * Register the blade extensions. |
||
67 | */ |
||
68 | protected function registerBladeExtensions() |
||
100 | } |
||
101 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.