/** * Display a listing of the resource. * * @return Response */ public function index($id = null) { if ($id == null) { return Registration::orderBy('id', 'asc')->get(); } else { return $this->show($id); } }
/** * Display a listing of the resource. * * @return Response */ public function index($id = null) { if ($id == null) { return Registration::orderBy('id', 'asc')->get(); } else { return $this->show($id); } }