develop
Last change
on this file since 7304c7f was 7304c7f, checked in by beratkjufliju <kufliju@…>, 3 years ago |
added user authentication, create & forgot password methods and blades
|
-
Property mode
set to
100644
|
File size:
728 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | namespace Database\Seeders;
|
---|
4 |
|
---|
5 | use Carbon\Carbon;
|
---|
6 | use Illuminate\Database\Seeder;
|
---|
7 |
|
---|
8 | class UsersTableSeeder extends Seeder
|
---|
9 | {
|
---|
10 | /**
|
---|
11 | * Run the database seeds.
|
---|
12 | *
|
---|
13 | * @return void
|
---|
14 | */
|
---|
15 | public function run()
|
---|
16 | {
|
---|
17 | \DB::table("users")->insert([
|
---|
18 | "name" => "Berat",
|
---|
19 | "surname" => "Kjufliju",
|
---|
20 | "username" => "beratk",
|
---|
21 | "password" => bcrypt("123456"),
|
---|
22 | "email" => "kufliju@gmail.com",
|
---|
23 | "mobile_number" => "+38971201239",
|
---|
24 | "role_id" => 1,
|
---|
25 | "is_active" => true,
|
---|
26 | "is_confirmed" => true,
|
---|
27 | "created_at" => Carbon::now()
|
---|
28 | ]);
|
---|
29 |
|
---|
30 | //factory(App\Models\User::class, 50)->create();
|
---|
31 | }
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.