mikehins /
laravel-translatable
| 1 | <?php |
||||||
| 2 | /** |
||||||
| 3 | * Created by PhpStorm. |
||||||
| 4 | * User: mikeh |
||||||
| 5 | * Date: 2018-05-28 |
||||||
| 6 | * Time: 8:27 AM. |
||||||
| 7 | */ |
||||||
| 8 | |||||||
| 9 | namespace Mikehins\Translatable; |
||||||
| 10 | |||||||
| 11 | use Illuminate\Support\Collection; |
||||||
| 12 | use Illuminate\Support\ServiceProvider; |
||||||
| 13 | |||||||
| 14 | class TranslatableServiceProvider extends ServiceProvider |
||||||
| 15 | { |
||||||
| 16 | public function boot() |
||||||
| 17 | { |
||||||
| 18 | $this->loadMigrationsFrom(__DIR__ . '/database/migrations/'); |
||||||
|
0 ignored issues
–
show
|
|||||||
| 19 | |||||||
| 20 | $this->publishes([ |
||||||
|
0 ignored issues
–
show
The method
publishes() does not exist on Mikehins\Translatable\TranslatableServiceProvider.
(
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...
|
|||||||
| 21 | __DIR__ . '/database/migrations/' => database_path('migrations') |
||||||
| 22 | ], 'migrations'); |
||||||
| 23 | |||||||
| 24 | $this->publishes([ |
||||||
| 25 | __DIR__ . '/config/languages.php' => config_path('languages.php'), |
||||||
| 26 | ], 'config'); |
||||||
| 27 | |||||||
| 28 | Collection::macro('for', function ($field, $code) { |
||||||
| 29 | return $this->where('key', $field)->where('locale', $code)->pluck('value')->first() ?? null; |
||||||
|
0 ignored issues
–
show
The method
where() does not exist on Mikehins\Translatable\TranslatableServiceProvider.
(
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...
|
|||||||
| 30 | }); |
||||||
| 31 | } |
||||||
| 32 | |||||||
| 33 | public function register() |
||||||
| 34 | { |
||||||
| 35 | } |
||||||
| 36 | } |
||||||
| 37 |
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.