| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('user_permissions', function(Blueprint $table) { |
||
| 17 | $table->increments('user_id')->unsigned(); |
||
| 18 | $table->boolean('manage_users')->default(0); |
||
| 19 | $table->boolean('run_reports')->default(0); |
||
| 20 | $table->boolean('add_customer')->default(1); |
||
| 21 | $table->boolean('deactivate_customer')->default(0); |
||
| 22 | $table->boolean('use_file_links')->default(1); |
||
| 23 | $table->boolean('create_tech_tip')->default(1); |
||
| 24 | $table->boolean('edit_tech_tip')->default(0); |
||
| 25 | $table->boolean('delete_tech_tip')->default(0); |
||
| 26 | $table->boolean('create_category')->default(0); |
||
| 27 | $table->boolean('modify_category')->default(0); |
||
| 28 | $table->foreign('user_id')->references('user_id')->on('users')->onUpdate('cascade')->onDelete('cascade'); |
||
|
|
|||
| 29 | $table->timestamps(); |
||
| 30 | }); |
||
| 43 |
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: