コード例 #1
0
 /**
  * Display a listing of repairs
  *
  * @return Response
  */
 public function index()
 {
     if (!Sentry::getUser()) {
         return Redirect::route('sessions.create');
     }
     $repairs = Repair::all();
     return View::make('repairs.index', compact('repairs'));
 }
コード例 #2
0
 /**
  * Display a listing of repairs
  *
  * @return Response
  */
 public function index()
 {
     $repairs = Repair::all();
     return View::make('repairs.index', compact('repairs'));
 }