id(); $table->string('login')->unique(); $table->string('email')->unique()->nullable(); $table->string('password'); $table->unsignedTinyInteger('role_id'); // $table->rememberToken(); $table->timestamps(); $table->foreign('role_id') ->references('id')->on('roles') ->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('users'); } }