/** * Execute the command. * * @param ExpenditureRepositoryInterface $repository */ public function handle(ExpenditureRepositoryInterface $repository) { /** * Create Position Type */ $repository->createType($this->name); }
/** * Execute the command. * * @param ExpenditureRepositoryInterface $repository */ public function handle(ExpenditureRepositoryInterface $repository) { /** * Enroll into a Expenditure */ $repository->unroll($this->expenditure->id, $this->user->id); }
/** * Execute the command. * * @param ExpenditureRepositoryInterface $repository * @param Dispatcher $event */ public function handle(ExpenditureRepositoryInterface $repository, Dispatcher $event) { /** * */ $repository->vote($this->enroller->id, $this->user->id); }
/** * Execute the command. * * @param ExpenditureRepositoryInterface $repository */ public function handle(ExpenditureRepositoryInterface $repository) { /** * Get The ID */ $id = is_numeric($this->expenditure) ? $this->expenditure : $this->expenditure->id; /** * Delete Expenditure */ $repository->delete($id); }
/** * Execute the command. * * @param ExpenditureRepositoryInterface $repository * @param Dispatcher $event */ public function handle(ExpenditureRepositoryInterface $repository, Dispatcher $event) { /** * Create Position */ $position = $repository->create($this->positionName, $this->type_id); /** * Announce ExpenditurePositionWasCreated */ $event->fire(new ExpenditurePositionWasCreated($position)); }
/** * Show the form for creating a new resource. * * @param Review $review * @param ExpenditureRepositoryInterface $repository * @return \Illuminate\Http\Response */ public function create(Review $review, ExpenditureRepositoryInterface $repository) { $review = $review->load('project.expenditures.expenditurable'); return view('committee.project.staff.create')->with('review', $review)->with('positions', $repository->positions()); }