Code Duplication    Length = 8-9 lines in 3 locations

config/database/auth.php 3 locations

@@ 22-30 (lines=9) @@
19
    $table->timestamps();
20
});
21
22
Manager::schema()->create('activations', function (Blueprint $table) {
23
    $table->increments('id');
24
    $table->unsignedInteger('user_id');
25
    $table->string('code');
26
    $table->boolean('completed')->default(0);
27
    $table->timestamp('completed_at')->nullable();
28
    $table->timestamps();
29
    $table->foreign('user_id')->references('id')->on('user');
30
});
31
32
Manager::schema()->create('persistences', function (Blueprint $table) {
33
    $table->increments('id');
@@ 40-48 (lines=9) @@
37
    $table->foreign('user_id')->references('id')->on('user');
38
});
39
40
Manager::schema()->create('reminders', function (Blueprint $table) {
41
    $table->increments('id');
42
    $table->unsignedInteger('user_id');
43
    $table->string('code');
44
    $table->boolean('completed')->default(0);
45
    $table->timestamp('completed_at')->nullable();
46
    $table->timestamps();
47
    $table->foreign('user_id')->references('id')->on('user');
48
});
49
50
Manager::schema()->create('roles', function (Blueprint $table) {
51
    $table->increments('id');
@@ 67-74 (lines=8) @@
64
    $table->foreign('role_id')->references('id')->on('roles');
65
});
66
67
Manager::schema()->create('throttle', function (Blueprint $table) {
68
    $table->increments('id');
69
    $table->integer('user_id')->unsigned()->nullable();
70
    $table->string('type');
71
    $table->string('ip')->nullable();
72
    $table->timestamps();
73
    $table->foreign('user_id')->references('id')->on('user');
74
});
75
76
$sentinel->getRoleRepository()->createModel()->create([
77
    'name' => 'Admin',