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