示例#1
0
 public function __construct($attributes = array(), $exists = false)
 {
     parent::__construct($attributes, $exists);
     // Eloquent)
     $this->errors = new \Illuminate\Support\MessageBag();
     $this->validations = new \Illuminate\Support\MessageBag();
 }
示例#2
0
 /**
  * Create a new Eloquent model instance.
  *
  * @param  array  $attributes
  * @return void
  */
 public function __construct(array $attributes = [])
 {
     parent::__construct($attributes);
     $this->__initEntity();
 }
示例#3
0
 public function __construct()
 {
     $this->table = config('laraboard.table_prefix') . $this->table;
     parent::__construct();
 }
示例#4
0
 public function __construct(array $attributes = array())
 {
     $this->setTable(\Request::segment(3));
     parent::__construct($attributes);
 }
示例#5
0
 /**
  * Category constructor.
  *
  * @param array $attributes
  */
 public function __construct(array $attributes)
 {
     parent::__construct($attributes);
 }