EscolaLMS/Webinar

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace EscolaLms\Webinar\Http\Requests;

use EscolaLms\Webinar\Models\Webinar;
use Illuminate\Foundation\Http\FormRequest;

class BaseWebinarRequest extends FormRequest
{
    public function getWebinar(): Webinar
    {
        return Webinar::findOrFail($this->route('webinar'));
    }

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