1 | <?php |
||||
2 | |||||
3 | namespace Blok\LaravelPackageGenerator; |
||||
4 | |||||
5 | use Blok\LaravelPackageGenerator\Commands\PackageClone; |
||||
6 | use Blok\LaravelPackageGenerator\Commands\PackageNew; |
||||
7 | use Blok\LaravelPackageGenerator\Commands\PackageRemove; |
||||
8 | |||||
9 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
||||
10 | { |
||||
11 | const CONFIG_PATH = __DIR__.'/../config/laravel-package-generator.php'; |
||||
12 | |||||
13 | public function boot() |
||||
14 | { |
||||
15 | $this->publishes([ |
||||
16 | self::CONFIG_PATH => config_path('laravel-package-generator.php'), |
||||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||||
17 | ], 'config'); |
||||
18 | |||||
19 | if ($this->app->runningInConsole()) { |
||||
0 ignored issues
–
show
The method
runningInConsole() does not exist on Illuminate\Contracts\Foundation\Application .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. ![]() |
|||||
20 | $this->commands([ |
||||
21 | PackageNew::class, |
||||
22 | PackageRemove::class, |
||||
23 | PackageClone::class, |
||||
24 | ]); |
||||
25 | } |
||||
26 | } |
||||
27 | |||||
28 | public function register() |
||||
29 | { |
||||
30 | $this->mergeConfigFrom( |
||||
31 | self::CONFIG_PATH, |
||||
32 | 'laravel-package-generator' |
||||
33 | ); |
||||
34 | } |
||||
35 | } |
||||
36 |