source: database/seeds/UsersTableSeeder.php@ 1f059b0

Last change on this file since 1f059b0 was 0924b6c, checked in by Özkan İliyaz <iliyaz_96@…>, 4 years ago

initial commit

  • Property mode set to 100644
File size: 742 bytes
RevLine 
[0924b6c]1<?php
2
3use Carbon\Carbon;
4use Illuminate\Database\Seeder;
5
6class UsersTableSeeder extends Seeder
7{
8 /**
9 * Run the database seeds.
10 *
11 * @return void
12 */
13 public function run()
14 {
15 DB::table("users")->insert([
16 "name" => "John",
17 "surname" => "Doe",
18 "username" => "john_doe",
19 "password" => bcrypt("Johnsecret1!"),
20 "email" => "johndoe@hotmail.com",
21 "country_code" => "MK",
22 "mobile_number" => "+389 71 111 222",
23 "role_id" => 1,
24 "is_active" => true,
25 "is_confirmed" => true,
26 "created_at" => Carbon::now()
27 ]);
28
29// factory(App\Models\User::class, 50)->create();
30 }
31}
Note: See TracBrowser for help on using the repository browser.