1 | <?php |
||
7 | class CreateLinksTable extends Migration |
||
8 | { |
||
9 | /** |
||
10 | * Run the migrations. |
||
11 | * |
||
12 | * @return void |
||
13 | */ |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('links', function (Blueprint $table) { |
||
|
|||
17 | $table->increments('id'); |
||
18 | $table->unsignedInteger('user_id')->nullable(); |
||
19 | $table->string('url'); |
||
20 | $table->string('hash')->unique(); |
||
21 | $table->timestamps(); |
||
22 | |||
23 | $table->foreign('user_id') |
||
24 | ->references('id')->on('users') |
||
25 | ->onDelete('cascade'); |
||
26 | }); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Reverse the migrations. |
||
31 | * |
||
32 | * @return void |
||
33 | */ |
||
34 | public function down() |
||
35 | { |
||
36 | Schema::dropIfExists('links'); |
||
37 | } |
||
38 | } |
||
39 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.