Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function up() |
||
14 | { |
||
15 | Schema::create('role_user', function (Blueprint $table) { |
||
16 | $table->increments('id')->unsigned(); |
||
17 | $table->integer('role_id')->unsigned()->index(); |
||
18 | $table->foreign('role_id')->references('id')->on('roles')->onDelete('cascade'); |
||
19 | $table->integer('user_id')->unsigned()->index(); |
||
20 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); |
||
21 | $table->timestamps(); |
||
22 | }); |
||
35 |