/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { //TODO check if start_time = null in authorize $group = Group::with('meetings')->findOrFail($id); $this->authorize($group); return $group; }
/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { $group = Group::with('meetings', 'employees')->findOrFail($id); $this->authorize($group); return $group; }
/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { $group = Group::with('planner')->findOrFail($id); $this->authorize($group); return $group; }