コード例 #1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $issue = \App\IssueModel::findOrFail($id);
     $questions = \App\IssueModel::find($id)->questions;
     // get available status & editable status
     $editable = true;
     $availableStatus = getAvailableStatuses($issue->status);
     return view('admin.issue', ['issue' => $issue, 'questions' => $questions, 'editable' => $editable, 'availableStatus' => $availableStatus]);
 }
コード例 #2
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $issue = \App\IssueModel::find($id);
     return view('main.issue', ['issue' => $issue]);
 }