Domain\Schedule\Http\Requests\UpdateRequest::authorize PHP Method

authorize() public method

Determine if the user is authorized to make this request.
public authorize ( ) : boolean
return boolean
    public function authorize()
    {
        $id = $this->route('schedule');
        return Schedule::where('id', $id)->exists();
    }
UpdateRequest