Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('fg_ministry_modules', function (Blueprint $table) { |
||
17 | $table->string('id')->index(); |
||
18 | $table->string('ministry_id', 150)->index(); |
||
19 | $table->string('module_id', 150)->index(); |
||
20 | $table->boolean('active')->default(true); |
||
21 | $table->timestamps(); |
||
22 | |||
23 | $table->foreign('ministry_id')->references('id')->on('fg_ministries')->onDelete('cascade'); |
||
|
|||
24 | $table->foreign('module_id')->references('id')->on('fg_modules')->onDelete('cascade'); |
||
25 | }); |
||
26 | } |
||
27 | |||
38 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: