/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $applications = Application::orderBy('title', 'ASC')->get(); return view('application.index', compact('applications')); }
/** * Responds to requests to GET /applications */ public function getIndex() { // Get all the applications. $apps = \App\Application::orderBy('name', 'ASC')->get(); return $apps; }