faithgen /
gallery
| 1 | <?php |
||||||
| 2 | |||||||
| 3 | namespace FaithGen\Gallery\Providers; |
||||||
| 4 | |||||||
| 5 | use FaithGen\Gallery\Models\Album; |
||||||
| 6 | use FaithGen\Gallery\Observers\AlbumObserver; |
||||||
| 7 | use FaithGen\Gallery\Services\AlbumService; |
||||||
| 8 | use FaithGen\SDK\Traits\ConfigTrait; |
||||||
| 9 | use Illuminate\Support\ServiceProvider; |
||||||
| 10 | |||||||
| 11 | class GalleryServiceProvider extends ServiceProvider |
||||||
| 12 | { |
||||||
| 13 | use ConfigTrait; |
||||||
| 14 | |||||||
| 15 | /** |
||||||
| 16 | * Bootstrap services. |
||||||
| 17 | * |
||||||
| 18 | * @return void |
||||||
| 19 | */ |
||||||
| 20 | public function boot() |
||||||
| 21 | { |
||||||
| 22 | $this->registerRoutes(__DIR__.'/../../routes/gallery.php', __DIR__.'/../../routes/source.php'); |
||||||
| 23 | |||||||
| 24 | $this->setUpSourceFiles(function () { |
||||||
| 25 | $this->loadMigrationsFrom(__DIR__.'/../../database/migrations'); |
||||||
|
0 ignored issues
–
show
|
|||||||
| 26 | $this->publishes([ |
||||||
|
0 ignored issues
–
show
The method
publishes() does not exist on FaithGen\Gallery\Providers\GalleryServiceProvider.
(
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. Loading history...
|
|||||||
| 27 | __DIR__.'/../../storage/gallery/' => storage_path('app/public/gallery'), |
||||||
| 28 | ], 'faithgen-gallery-storage'); |
||||||
| 29 | |||||||
| 30 | $this->publishes([ |
||||||
| 31 | __DIR__.'/../../database/migrations/' => database_path('migrations'), |
||||||
| 32 | ], 'faithgen-gallery-migrations'); |
||||||
| 33 | }); |
||||||
| 34 | |||||||
| 35 | $this->publishes([ |
||||||
| 36 | __DIR__.'/../../config/faithgen-gallery.php' => config_path('faithgen-gallery.php'), |
||||||
| 37 | ], 'faithgen-gallery-config'); |
||||||
| 38 | |||||||
| 39 | Album::observe(AlbumObserver::class); |
||||||
| 40 | } |
||||||
| 41 | |||||||
| 42 | /** |
||||||
| 43 | * Register services. |
||||||
| 44 | * |
||||||
| 45 | * @return void |
||||||
| 46 | */ |
||||||
| 47 | public function register() |
||||||
| 48 | { |
||||||
| 49 | $this->mergeConfigFrom(__DIR__.'/../../config/faithgen-gallery.php', 'faithgen-gallery'); |
||||||
|
0 ignored issues
–
show
The method
mergeConfigFrom() does not exist on FaithGen\Gallery\Providers\GalleryServiceProvider.
(
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. Loading history...
|
|||||||
| 50 | |||||||
| 51 | $this->app->singleton(AlbumService::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. Loading history...
|
|||||||
| 52 | } |
||||||
| 53 | |||||||
| 54 | /** |
||||||
| 55 | * The config you want to be applied onto your routes. |
||||||
| 56 | * @return array the rules eg, middleware, prefix, namespace |
||||||
| 57 | */ |
||||||
| 58 | public function routeConfiguration(): array |
||||||
| 59 | { |
||||||
| 60 | return [ |
||||||
| 61 | 'prefix' => config('faithgen-gallery.prefix'), |
||||||
| 62 | 'middleware' => config('faithgen-gallery.middlewares'), |
||||||
| 63 | ]; |
||||||
| 64 | } |
||||||
| 65 | } |
||||||
| 66 |
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.