EscolaLMS/Consultations

View on GitHub
src/Http/Requests/ShowConsultationRequest.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace EscolaLms\Consultations\Http\Requests;

use Illuminate\Support\Facades\Gate;

class ShowConsultationRequest extends ConsultationRequest
{
    public function authorize(): bool
    {
        return Gate::allows('read', $this->getConsultation());
    }

    public function rules(): array
    {
        return [];
    }
}