1 | <?php |
||||||
2 | |||||||
3 | namespace InnoFlash\LaraStart\Providers; |
||||||
4 | |||||||
5 | use Illuminate\Routing\ResponseFactory; |
||||||
6 | use Illuminate\Support\ServiceProvider; |
||||||
7 | use InnoFlash\LaraStart\Console\Commands\MakeServiceCommand; |
||||||
8 | use InnoFlash\LaraStart\Mixins\ResponseMixin; |
||||||
9 | use InnoFlash\LaraStart\Services\AuthService; |
||||||
10 | |||||||
11 | class LaraStartServiceProvider extends ServiceProvider |
||||||
12 | { |
||||||
13 | /** |
||||||
14 | * Bootstrap services. |
||||||
15 | * |
||||||
16 | * @return void |
||||||
17 | * @throws \ReflectionException |
||||||
18 | */ |
||||||
19 | public function boot() |
||||||
20 | { |
||||||
21 | ResponseFactory::mixin(new ResponseMixin()); |
||||||
22 | |||||||
23 | $this->mergeConfigFrom(__DIR__.'/../../config/larastart.php', 'larastart'); |
||||||
0 ignored issues
–
show
|
|||||||
24 | |||||||
25 | $this->publishes([ |
||||||
0 ignored issues
–
show
The method
publishes() does not exist on InnoFlash\LaraStart\Prov...araStartServiceProvider .
(
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. ![]() |
|||||||
26 | __DIR__.'/../../config/larastart.php' => config_path('larastart.php'), |
||||||
27 | ], 'larastart-config'); |
||||||
28 | |||||||
29 | $this->commands([ |
||||||
0 ignored issues
–
show
The method
commands() does not exist on InnoFlash\LaraStart\Prov...araStartServiceProvider .
(
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. ![]() |
|||||||
30 | MakeServiceCommand::class, |
||||||
31 | ]); |
||||||
32 | } |
||||||
33 | |||||||
34 | /** |
||||||
35 | * Register services. |
||||||
36 | * |
||||||
37 | * @return void |
||||||
38 | */ |
||||||
39 | public function register() |
||||||
40 | { |
||||||
41 | $this->app->singleton(AuthService::class); |
||||||
0 ignored issues
–
show
The method
singleton() does not exist on Tests\Laravel\App .
(
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. ![]() |
|||||||
42 | } |
||||||
43 | } |
||||||
44 |
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.