Exemple #1
0
 /**
  * Run the User table database seeds.
  *
  * @return void
  */
 public function run()
 {
     $client_id = \p4\Client::where('name', '=', 'Roth Rugs')->pluck('id')->first();
     $role_id = \p4\Role::where('name', '=', 'Agency')->pluck('id')->first();
     DB::table('users')->insert(['created_at' => Carbon\Carbon::now()->toDateTimeString(), 'updated_at' => Carbon\Carbon::now()->toDateTimeString(), "name" => "Jill", "email" => "*****@*****.**", "password" => bcrypt("helloworld"), "client_id" => $client_id, "role_id" => $role_id]);
     $client_id = \p4\Client::where('name', '=', 'Uptown Realty')->pluck('id')->first();
     $role_id = \p4\Role::where('name', '=', 'Client')->pluck('id')->first();
     DB::table('users')->insert(['created_at' => Carbon\Carbon::now()->toDateTimeString(), 'updated_at' => Carbon\Carbon::now()->toDateTimeString(), "name" => "Jamal", "email" => "*****@*****.**", "password" => bcrypt("helloworld"), "client_id" => $client_id, "role_id" => $role_id]);
     $client_id = \p4\Client::where('name', '=', 'Uptown Realty')->pluck('id')->first();
     $role_id = \p4\Role::where('name', '=', 'Agency')->pluck('id')->first();
     DB::table('users')->insert(['created_at' => Carbon\Carbon::now()->toDateTimeString(), 'updated_at' => Carbon\Carbon::now()->toDateTimeString(), "name" => "Shaun", "email" => "*****@*****.**", "password" => bcrypt("helloworld"), "client_id" => $client_id, "admin" => "1", "role_id" => $role_id]);
 }