public function index() { $guests = Guest::all(); return view('guests.index', compact('guests')); }
/** * Store a newly created resource in storage. * * @param Request $request * @return Response */ public function store(Requests\CobaRequest $request) { return Guest::all(); }
public function index() { $items = Guest::all(); return $items; }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $data = array('title' => 'Dashboard', 'household_count' => Household::all()->count(), 'family_count' => Family::all()->count(), 'person_count' => Person::all()->count(), 'guest_count' => Guest::all()->count()); return view('dashboard')->with($data); }
public function listGuest() { $data['title'] = 'MANAGE GUEST'; $data['guest'] = Guest::all(); return view('default/listGuest', $data); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return Guest::all(); }
/** * Generate all of the q-codes for all users * * @param none * * @return response */ public function generate_qcodes() { $guests = Guest::all(); $count = 0; foreach ($guests as $guest) { $guest->qcode = $guest->generate_qcode(); $guest->save(); $count++; } return redirect('classmates')->with('message', "{$count} Guests Updated"); }