Files
cattr/app/Http/Requests/Interval/ScreenshotRequest.php
Noor E Ilahi 7ccf44f7da first commit
2026-01-09 12:54:53 +05:30

22 lines
416 B
PHP

<?php
namespace App\Http\Requests\Interval;
use App\Http\Requests\AuthorizesAfterValidation;
use App\Http\Requests\CattrFormRequest;
class ScreenshotRequest extends CattrFormRequest
{
use AuthorizesAfterValidation;
public function authorizeValidated(): bool
{
return $this->user()->can('view', request('interval'));
}
public function _rules(): array
{
return [];
}
}