source: database/seeders/UsersTableSeeder.php@ b9c4a92

develop
Last change on this file since b9c4a92 was d795fa6, checked in by Berat Kjufliju <kufliju@…>, 3 years ago

added validation to blades

  • Property mode set to 100644
File size: 771 bytes
RevLine 
[7304c7f]1<?php
2
3namespace Database\Seeders;
4
[120759b]5use App\Models\User;
[7304c7f]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 "name" => "Berat",
20 "surname" => "Kjufliju",
21 "username" => "beratk",
22 "password" => bcrypt("123456"),
23 "email" => "kufliju@gmail.com",
[d795fa6]24 "phone_number" => "+38971201239",
[7304c7f]25 "role_id" => 1,
26 "is_active" => true,
27 "is_confirmed" => true,
[d795fa6]28 "created_by" => "1",
[7304c7f]29 "created_at" => Carbon::now()
30 ]);
31
[120759b]32 User::factory()->count(20)->create();
[194a359]33
[7304c7f]34 }
35}
Note: See TracBrowser for help on using the repository browser.