for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Cortex\Pages\Http\Requests\Adminarea;
use Rinvex\Support\Http\Requests\FormRequest;
class PageFormRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
return true;
}
* Get the validation rules that apply to the request.
* @return array
public function rules()
$page = $this->route('page') ?? app('rinvex.pages.page');
$page->updateRulesUniques();
return $page->getRules();