| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function up() |
||
| 18 | { |
||
| 19 | Schema::create('events', function (Blueprint $table) { |
||
| 20 | $table->increments('id'); |
||
| 21 | $table->string('name'); |
||
| 22 | $table->integer('user_id')->unsigned(); |
||
| 23 | $table->string('description')->nullable(); |
||
| 24 | $table->timestamps(); |
||
| 25 | |||
| 26 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');; |
||
| 27 | |||
| 28 | }); |
||
| 29 | } |
||
| 30 | |||
| 41 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.