コード例 #1
0
ファイル: IssueController.php プロジェクト: echiteri/iBLIS
 /**
  * Show the form for dispatching the resource to the bench.
  *
  * @return Response
  */
 public function dispatch($id)
 {
     $topupRequest = TopupRequest::find($id);
     $batches = Receipt::where('commodity_id', '=', $topupRequest->commodity_id)->lists('batch_no', 'id');
     $users = User::where('id', '!=', Auth::user()->id)->lists('name', 'id');
     return view('issue.create')->with('topupRequest', $topupRequest)->with('users', $users)->with('batches', $batches);
 }
コード例 #2
0
 /**
  * @return \Illuminate\Routing\Route|null|string
  */
 public function ingnoreId()
 {
     $id = $this->route('topup');
     $commodity_id = $this->input('commodity_id');
     $test_category_id = $this->input('test_category_id');
     $user_id = $this->input('user_id');
     return TopupRequest::where(compact('id', 'commodity_id', 'test_category_id', 'user_id'))->exists() ? $id : '';
 }