-
Notifications
You must be signed in to change notification settings - Fork 822
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy DatabaseSeeder when installing with team support (#1461)
* Copy DatabaseSeeder when installing with team support To ensureApplicationIsTeamCompatible, the seeded test user must be created withPersonalTeam. * Update DatabaseSeeder.php --------- Co-authored-by: Dries Vints <[email protected]>
- Loading branch information
1 parent
a57f6e9
commit 152c89b
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace Database\Seeders; | ||
|
||
use App\Models\User; | ||
// use Illuminate\Database\Console\Seeds\WithoutModelEvents; | ||
use Illuminate\Database\Seeder; | ||
|
||
class DatabaseSeeder extends Seeder | ||
{ | ||
/** | ||
* Seed the application's database. | ||
*/ | ||
public function run(): void | ||
{ | ||
// User::factory(10)->withPersonalTeam()->create(); | ||
|
||
User::factory()->withPersonalTeam()->create([ | ||
'name' => 'Test User', | ||
'email' => '[email protected]', | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters