'required|min:2', ); public function has_assets() { return $this->hasMany('Asset', 'status_id')->count(); } }