Version 0.7.0 #1
@ -18,14 +18,14 @@ return new class extends Migration
|
|||||||
Schema::create('roles', function (Blueprint $table) {
|
Schema::create('roles', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->string('slug')->unique();
|
$table->string('code')->unique();
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
$table->softDeletes();
|
$table->softDeletes();
|
||||||
});
|
});
|
||||||
|
|
||||||
DB::table('roles')->insert([
|
DB::table('roles')->insert([
|
||||||
'name' => 'Administrator',
|
'name' => 'Administrator',
|
||||||
'slug' => 'admin',
|
'code' => 'admin',
|
||||||
'created_at' => Carbon::now(),
|
'created_at' => Carbon::now(),
|
||||||
'updated_at' => Carbon::now()
|
'updated_at' => Carbon::now()
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user