public function run() { Model::unguard(); DB::table('users')->truncate(); User::create(['id' => 1, 'name' => 'hernan anabalon', 'email' => '*****@*****.**', 'phone' => '74885468', 'type_phone' => 1, 'status' => '1', 'company_id' => '1', 'password' => \Hash::make('12345')]); }
/** * Create a new user instance after a valid registration. * * @param array $data * @return User */ public function create(array $data) { return User::create(['name' => $data['name'], 'email' => $data['email'], 'password' => bcrypt($data['password'])]); }