fix
This commit is contained in:
@@ -14,6 +14,7 @@ return new class extends Migration
|
||||
Schema::create('teams', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('description')->nullable();
|
||||
$table->boolean('personal_team')->default(false);
|
||||
$table->schemalessAttributes('extra_attributes');
|
||||
$table->timestamps();
|
||||
|
||||
@@ -5,7 +5,6 @@ namespace Database\Seeders;
|
||||
use App\Models\Team;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class TeamSeeder extends Seeder
|
||||
{
|
||||
@@ -13,6 +12,8 @@ class TeamSeeder extends Seeder
|
||||
{
|
||||
$normal_user_in_root_team = User::find(1);
|
||||
$root_user_personal_team = Team::find(0);
|
||||
$root_user_personal_team->description = 'The root team';
|
||||
$root_user_personal_team->save();
|
||||
|
||||
$normal_user_in_root_team->teams()->attach($root_user_personal_team);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user