1 | <?php |
||||
2 | |||||
3 | namespace Fomvasss\SlugMaker; |
||||
4 | |||||
5 | use Fomvasss\SlugMaker\Models\Slug; |
||||
6 | use Illuminate\Support\ServiceProvider; |
||||
7 | |||||
8 | class SlugMakerServiceProvider extends ServiceProvider |
||||
9 | { |
||||
10 | public function boot() |
||||
11 | { |
||||
12 | $this->publishes([ |
||||
13 | __DIR__.'/../config/slugmaker.php' => $this->app->configPath().'/slugmaker.php', |
||||
0 ignored issues
–
show
|
|||||
14 | ], 'slugmaker-config'); |
||||
15 | |||||
16 | if (! class_exists('CreateSlugsTable')) { |
||||
17 | $timestamp = date('Y_m_d_His', time()); |
||||
18 | |||||
19 | $this->publishes([ |
||||
20 | __DIR__.'/../database/migrations/create_slugs_table.php.stub' => $this->app->databasePath()."/migrations/{$timestamp}_create_slugs_table.php", |
||||
0 ignored issues
–
show
The method
databasePath() does not exist on Illuminate\Contracts\Foundation\Application . Did you maybe mean basePath() ?
(
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. ![]() |
|||||
21 | ], 'slugmaker-migrations'); |
||||
22 | } |
||||
23 | } |
||||
24 | |||||
25 | public function register() |
||||
26 | { |
||||
27 | $this->mergeConfigFrom(__DIR__.'/../config/slugmaker.php', 'slugmaker'); |
||||
28 | |||||
29 | $this->app->bind(SlugHelper::class, function () { |
||||
30 | return new SlugHelper(new Slug()); |
||||
31 | }); |
||||
32 | } |
||||
33 | } |
||||
34 |
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.