signifly /
laravel-manageable
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Signifly\Manageable; |
||
| 4 | |||
| 5 | use Illuminate\Database\Schema\Blueprint; |
||
| 6 | use Illuminate\Support\ServiceProvider; |
||
| 7 | |||
| 8 | class ManageableServiceProvider extends ServiceProvider |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Bootstrap the application services. |
||
| 12 | * |
||
| 13 | * @return void |
||
| 14 | */ |
||
| 15 | public function boot() |
||
| 16 | { |
||
| 17 | Blueprint::macro('manageable', function () { |
||
| 18 | |||
| 19 | $bigIntegers = config('manageable.big_integers', true); |
||
| 20 | $foreignTable = config('manageable.foreign_table', 'users'); |
||
| 21 | $foreignKey = config('manageable.foreign_key', 'id'); |
||
| 22 | |||
| 23 | $bigIntegers |
||
| 24 | ? $this->unsignedBigInteger('created_by')->nullable()->index() |
||
| 25 | : $this->unsignedInteger('created_by')->nullable()->index(); |
||
| 26 | $bigIntegers |
||
| 27 | ? $this->unsignedBigInteger('updated_by')->nullable()->index() |
||
| 28 | : $this->unsignedInteger('updated_by')->nullable()->index(); |
||
| 29 | |||
| 30 | $this->foreign('created_by') |
||
|
0 ignored issues
–
show
|
|||
| 31 | ->references($foreignKey) |
||
| 32 | ->on($foreignTable) |
||
| 33 | ->onDelete('set null'); |
||
| 34 | |||
| 35 | $this->foreign('updated_by') |
||
| 36 | ->references($foreignKey) |
||
| 37 | ->on($foreignTable) |
||
| 38 | ->onDelete('set null'); |
||
| 39 | }); |
||
| 40 | |||
| 41 | $this->publishes([ |
||
| 42 | __DIR__.'/../config/manageable.php' => config_path('manageable.php') |
||
| 43 | ], 'config'); |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Register the service provider. |
||
| 48 | * |
||
| 49 | * @return void |
||
| 50 | */ |
||
| 51 | public function register() |
||
| 52 | { |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
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.