Ignore:
Timestamp:
10/15/21 00:21:44 (3 years ago)
Author:
Berat Kjufliju <kufliju@…>
Branches:
develop, master
Children:
d795fa6
Parents:
24a616f
Message:

added UserFactory, edited html, added delete to departments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • database/seeders/UsersTableSeeder.php

    r24a616f r120759b  
    33namespace Database\Seeders;
    44
     5use App\Models\User;
    56use Carbon\Carbon;
    67use Illuminate\Database\Seeder;
     
    2829        ]);
    2930
    30         \DB::table("users")->insert([
    31             "name" => "John",
    32             "surname" => "Doe",
    33             "username" => "john_doe",
    34             "password" => bcrypt("Johnsecret1!"),
    35             "email" => "johndoe@hotmail.com",
    36             "mobile_number" => "+389 71 111 222",
    37             "role_id" => 2,
    38             "is_active" => true,
    39             "is_confirmed" => true,
    40             "created_at" => Carbon::now()
    41         ]);
     31        User::factory()->count(20)->create();
    4232
    4333    }
Note: See TracChangeset for help on using the changeset viewer.