/** * Create a user data record * @name create * @type method * @access public * @param integer user id * @param string email address * @param string password [optional] * @param bool agree [optional] * @param bool opt in [optional] * @param bool track [optional] * @returns bool * @syntax bool BreedUser->create( integer userid, string email [, string password [, bool agree [, bool optin [, bool track ] ] ] ] ); */ public function create($email, $password = false, $userAgree = false, $userOptIn = false, $doTrack = true) { return parent::create($email, $this->_passwordHash($password), $userAgree, $userOptIn, $doTrack); }
public function run() { DB::table('core_users')->delete(); CoreUser::setHasher(new Cartalyst\Sentry\Hashing\NativeHasher()); CoreUser::create(array('email' => '*****@*****.**', 'password' => Hash::make('secret'), 'first_name' => 'Daniel', 'last_name' => 'Wu')); }