Domain\Student\Http\Requests\UpdateRequest::authorize PHP Méthode

authorize() public méthode

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