Code Duplication    Length = 26-26 lines in 2 locations

database/migrations/2020_07_11_151756_create_roles_table.php 1 location

@@ 12-37 (lines=26) @@
9
 *
10
 * @author Andrey Girnik <[email protected]>
11
 */
12
class CreateRolesTable extends Migration
13
{
14
    /**
15
     * Run the migrations.
16
     * @return void
17
     */
18
    public function up()
19
    {
20
        Schema::create('roles', function (Blueprint $table) {
21
            $table->increments('id');
22
            $table->string('name', 191);
23
            $table->string('slug', 191)->unique();
24
            $table->string('description', 191);
25
            $table->timestamps();
26
        });
27
    }
28
29
    /**
30
     * Reverse the migrations.
31
     * @return void
32
     */
33
    public function down()
34
    {
35
        Schema::dropIfExists('roles');
36
    }
37
}
38

database/migrations/2020_07_11_151894_create_permissions_table.php 1 location

@@ 12-37 (lines=26) @@
9
 *
10
 * @author Andrey Girnik <[email protected]>
11
 */
12
class CreatePermissionsTable extends Migration
13
{
14
    /**
15
     * Run the migrations.
16
     * @return void
17
     */
18
    public function up()
19
    {
20
        Schema::create('permissions', function (Blueprint $table) {
21
            $table->increments('id');
22
            $table->string('name', 191);
23
            $table->string('slug', 191)->unique();
24
            $table->string('description', 191);
25
            $table->timestamps();
26
        });
27
    }
28
29
    /**
30
     * Reverse the migrations.
31
     * @return void
32
     */
33
    public function down()
34
    {
35
        Schema::dropIfExists('permissions');
36
    }
37
}
38