Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function up() |
||
13 | { |
||
14 | Schema::create('notification__notifications', function (Blueprint $table) { |
||
15 | $table->increments('id'); |
||
16 | $table->integer('user_id')->unsigned(); |
||
17 | $table->string('type')->nullable(); |
||
18 | $table->string('icon_class'); |
||
19 | $table->string('link')->nullable(); |
||
20 | $table->string('title'); |
||
21 | $table->string('message'); |
||
22 | $table->boolean('is_read')->default(false); |
||
23 | $table->timestamps(); |
||
24 | $table->foreign('user_id')->references('id')->on(config('auth.table', 'users'))->onDelete('cascade'); |
||
25 | }); |
||
26 | } |
||
27 | |||
37 |
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.