Domain\Teacher\Http\Requests\AssociateMatterRequest::authorize PHP 메소드

authorize() 공개 메소드

Determine if the user is authorized to make this request.
public authorize ( ) : boolean
리턴 boolean
    public function authorize()
    {
        return Teacher::where('id', $this->route('teacher_id'))->exists();
    }
AssociateMatterRequest