public function __construct() { parent::__construct(app()); $this->pushCriteria(new ByBranchCriteria(request()))->scopeQuery(function ($query) { return $query->orderBy('lastname')->orderBy('firstname'); }); }
public function __construct(App $app, Collection $collection) { parent::__construct($app, $collection); $this->pushCriteria(new ByBranchCriteria(request()))->scopeQuery(function ($query) { return $query->orderBy('uploaddate', 'desc'); }); }
public function __construct(SupplierRepo $supplierrepo, CompRepo $comprepo, CompledgerRepo $ledger) { parent::__construct(app()); $this->supplier = $supplierrepo; $this->component = $comprepo; $this->ledger = $ledger; }
public function __construct(Application $app) { parent::__construct($app); $args = ['subject' => $this]; notify(__CLASS__ . '_Init', $args); notify(get_called_class() . '_Init', $args); }
public function __construct() { parent::__construct(app()); //$this->pushCriteria(new ByBranchCriteria(request())); $this->scopeQuery(function ($query) { return $query->orderBy('comp', 'asc'); }); }
public function __construct(BBRepo $bbrepo, DailySales $dailysales, BranchRepository $branch) { parent::__construct(app()); $this->bossbranch = $bbrepo; $this->bossbranch->pushCriteria(new BossBranchCriteria()); $this->branch = new BranchRepository(); $this->branch->pushCriteria(new ActiveBranch()); }
public function __construct(EmployeeRepository $emprepo) { parent::__construct(app()); $this->employees = $emprepo; $this->pushCriteria(new ByBranchCriteria(request()))->scopeQuery(function ($query) { return $query->orderBy('datetime', 'desc'); }); }
public function __construct(Container $app, $model = null) { $this->prepareModel($model); parent::__construct($app); }
public function __construct() { parent::__construct(app()); }
public function __construct(ExpenseRepo $expenserepo) { parent::__construct(app()); $this->expense = $expenserepo; }
public function __construct(App $app, ByBranch $byBranch) { parent::__construct($app); $this->pushCriteria($byBranch); }
public function __construct(CompcatRepo $compcatrepo) { parent::__construct(app()); $this->compcat = $compcatrepo; }
/** * UserRepository constructor * * @param Application $app */ public function __construct(Application $app, Hasher $hasher) { $this->hasher = $hasher; parent::__construct($app); }
public function __construct(Application $app) { parent::__construct($app); }
public function __construct() { parent::__construct(app()); //$this->boots(); }