source: database/seeders/UsersTableSeeder.php@ 2db8837

develop
Last change on this file since 2db8837 was 2db8837, checked in by beratkjufliju <kufliju@…>, 3 years ago

edited seeders

  • Property mode set to 100644
File size: 788 bytes
Line 
1<?php
2
3namespace Database\Seeders;
4
5use App\Models\User;
6use Carbon\Carbon;
7use Illuminate\Database\Seeder;
8
9class UsersTableSeeder extends Seeder
10{
11 /**
12 * Run the database seeds.
13 *
14 * @return void
15 */
16 public function run()
17 {
18 \DB::table("users")->insert([
19 "id" => "1",
20 "name" => "Berat",
21 "surname" => "Kjufliju",
22 "username" => "beratk",
23 "password" => bcrypt("123456"),
24 "email" => "kufliju@gmail.com",
25 "phone_number" => "+38971201239",
26 "role_id" => 1,
27 "is_active" => true,
28 "is_confirmed" => true,
29 "created_by" => "1",
30 "created_at" => now()
31 ]);
32
33 User::factory()->count(50)->create();
34
35 }
36}
Note: See TracBrowser for help on using the repository browser.