コード例 #1
0
ファイル: User.php プロジェクト: kevbaldwyn/sentry-auth
 public function __construct(array $attributes = array())
 {
     // define dependencies
     // this is for when we are calling the model directly
     // these are usually defined by the IoC however as we are effectively breaking this to provide a consistent API
     // so we need to redefine them in the constructor
     // probably not the best approach...
     static::$hasher = \App::make('sentry.hasher');
     static::$loginAttribute = \Config::get('cartalyst/sentry::users.login_attribute');
     parent::__construct($attributes);
 }
コード例 #2
0
ファイル: PeculiarUser.php プロジェクト: r15ch13/peculiar
 /**
  * Create a new Eloquent model instance.
  *
  * @param  array  $attributes
  * @return void
  */
 public function __construct(array $attributes = array())
 {
     $this->{$this->getKeyName()} = (string) $this->generateNewId();
     parent::__construct($attributes);
 }
コード例 #3
0
ファイル: User.php プロジェクト: ymnl007/92five
 /**
  * Indicates if the model should soft delete.
  *
  * @var bool
  */
 public function __construct()
 {
     parent::__construct();
 }