Exemplo n.º 1
0
 /**
  * Determine if the user is authorized to make this request.
  *
  * @return bool
  */
 public function authorize()
 {
     $id = $this->route('teacher');
     return Teacher::where('id', $id)->exists();
 }
 /**
  * Determine if the user is authorized to make this request.
  *
  * @return bool
  */
 public function authorize()
 {
     return Teacher::where('id', $this->route('teacher_id'))->exists();
 }