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