blob: 1342d58ca50b27201e757793317a6afba9d77395 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
namespace Database\Seeders;
use App\Models\Player;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
// User::factory(10)->create();
Player::create([
'name' => 'admin',
'password' => Hash::make('12345'),
'team' => 'none',
'score' => 100,
'is_admin' => true,
]);
}
}
|