Issues (11)

src/SmsGatewayServiceProvider.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace AbuSalam;
4
5
use Illuminate\Support\ServiceProvider;
6
7
/**
8
 * Bootstrap SMS Gateway Services
9
 */
10
class SmsGatewayServiceProvider extends ServiceProvider
11
{
12
    
13
    /**
14
     * Bootstrap any application services.
15
     *
16
     * @return void
17
     */
18
    public function boot()
19
    {
20
        if ($this->app->runningInConsole()) {
21
            $this->publishes([
22
                __DIR__.'/../config/config.php' => config_path('smsgateway.php'),
0 ignored issues
show
The function config_path was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

22
                __DIR__.'/../config/config.php' => /** @scrutinizer ignore-call */ config_path('smsgateway.php'),
Loading history...
23
            ], 'config');
24
            /*
25
            $this->loadViewsFrom(__DIR__.'/../resources/views', 'skeleton');
26
            $this->publishes([
27
                __DIR__.'/../resources/views' => base_path('resources/views/vendor/skeleton'),
28
            ], 'views');
29
            */
30
        }
31
    }
32
33
    /**
34
     * Register any application services.
35
     *
36
     * @return void
37
     */
38
    public function register()
39
    {
40
        $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'smsgateway');
41
    }
42
}
43