Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * 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;
 }
Example #3
0
 /**
  * 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;
 }