コード例 #1
0
ファイル: projectController.php プロジェクト: janisZem/jpak
 public function index()
 {
     $data['paragraphs'] = Paragraph::where('type', 'PM')->get();
     return view('project.project', $data);
 }
コード例 #2
0
ファイル: paragraphController.php プロジェクト: janisZem/jpak
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $data['paragraphs'] = DB::table('paragraph')->where('type', 'P')->get();
     $data['rows'] = Paragraph::where('type', 'R')->get();
     return view('index', $data);
 }
コード例 #3
0
ファイル: legalController.php プロジェクト: janisZem/jpak
 public function index()
 {
     $data['paragraphs'] = Paragraph::where('type', 'PL')->get();
     return view('legal.legal', $data);
 }