ikechukwukalu /
dynamicmailconfig
| 1 | <?php |
||||||
| 2 | |||||||
| 3 | namespace Ikechukwukalu\Dynamicmailconfig; |
||||||
| 4 | |||||||
| 5 | use Ikechukwukalu\Dynamicmailconfig\Middleware\DynamicMailConfig; |
||||||
| 6 | use Illuminate\Support\ServiceProvider; |
||||||
| 7 | use Illuminate\Routing\Router; |
||||||
| 8 | |||||||
| 9 | class DynamicMailConfigServiceProvider extends ServiceProvider |
||||||
| 10 | { |
||||||
| 11 | public const DB = __DIR__.'/migrations'; |
||||||
| 12 | public const CONFIG = __DIR__.'/config/dynamicmailconfig.php'; |
||||||
| 13 | |||||||
| 14 | /** |
||||||
| 15 | * Bootstrap the application services. |
||||||
| 16 | * |
||||||
| 17 | * @return void |
||||||
| 18 | */ |
||||||
| 19 | public function boot() |
||||||
| 20 | { |
||||||
| 21 | $router = $this->app->make(Router::class); |
||||||
|
0 ignored issues
–
show
|
|||||||
| 22 | $router->aliasMiddleware('dynamic.mail.config', DynamicMailConfig::class); |
||||||
| 23 | |||||||
| 24 | $this->loadMigrationsFrom(self::DB); |
||||||
|
0 ignored issues
–
show
The method
loadMigrationsFrom() does not exist on Ikechukwukalu\Dynamicmai...ilConfigServiceProvider.
(
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...
|
|||||||
| 25 | |||||||
| 26 | $this->publishes([ |
||||||
|
0 ignored issues
–
show
The method
publishes() does not exist on Ikechukwukalu\Dynamicmai...ilConfigServiceProvider.
(
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 | self::CONFIG => config_path('dynamicmailconfig.php'), |
||||||
| 28 | ], 'dmc-config'); |
||||||
| 29 | |||||||
| 30 | $this->publishes([ |
||||||
| 31 | self::DB => database_path('migrations'), |
||||||
| 32 | ], 'dmc-migrations'); |
||||||
| 33 | } |
||||||
| 34 | |||||||
| 35 | /** |
||||||
| 36 | * Register the application services. |
||||||
| 37 | * |
||||||
| 38 | * @return void |
||||||
| 39 | */ |
||||||
| 40 | public function register() |
||||||
| 41 | { |
||||||
| 42 | $this->mergeConfigFrom( |
||||||
|
0 ignored issues
–
show
The method
mergeConfigFrom() does not exist on Ikechukwukalu\Dynamicmai...ilConfigServiceProvider.
(
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...
|
|||||||
| 43 | self::CONFIG, 'dynamicmailconfig' |
||||||
| 44 | ); |
||||||
| 45 | } |
||||||
| 46 | } |
||||||
| 47 |
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.