Issues (42)

src/InboxServiceProvider.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Evilnet\Inbox;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class InboxServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Perform post-registration booting of services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        include __DIR__.'/routes.php';
17
          $this->publishes([
18
            __DIR__ . '/migrations' => $this->app->databasePath() . '/migrations'
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 ignore-call  annotation

18
            __DIR__ . '/migrations' => $this->app->/** @scrutinizer ignore-call */ databasePath() . '/migrations'

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...
19
        ], 'migrations');
20
21
    }
22
23
    /**
24
     * Register any package services.
25
     *
26
     * @return void
27
     */
28
    public function register()
29
    {
30
        $this->app->make('Evilnet\Inbox\InboxController');
31
        $this->loadViewsFrom(__DIR__.'/views', 'inbox');
32
    }
33
}
34