Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit 064235e

Browse files
committed
fear: update default seeders
1 parent 5ddecdd commit 064235e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

app/database/seeds/DatabaseSeeder.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
class DatabaseSeeder extends Seeder
88
{
99
/**
10-
* Seed the application's database.
11-
*
10+
* Seed your application's database.
1211
* @return void
1312
*/
1413
public function run(): array

app/database/seeds/UsersSeeder.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,28 @@
22

33
namespace App\Database\Seeds;
44

5+
use App\Models\User;
56
use App\Database\Factories\UserFactory;
67
use Illuminate\Database\Seeder;
7-
use App\Models\User;
88

99
class UsersSeeder extends Seeder
1010
{
1111
/**
1212
* Run the database seeds.
13-
*
1413
* @return void
1514
*/
1615
public function run()
1716
{
18-
// You can directly create db records
17+
// You can directly create db records like this 👇
18+
1919
// $user = new User();
20+
// $user->username = 'mychi';
2021
// $user->fullname = 'Mychi Darko';
21-
// $user->email = "[email protected]";
22-
// $user->password = md5("password.demo");
22+
// $user->email = '[email protected]';
23+
// $user->password = \Leaf\Password::hash('password');
2324
// $user->save();
2425

25-
// You can also use factories like this
26+
// You can also use factories like this 👇
2627
(new UserFactory)->create(5)->save();
2728

2829
// even better, you can use them together :-)

0 commit comments

Comments
 (0)