for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SaasReady\Http\Requests\Language;
use SaasReady\Http\Requests\BaseFormRequest;
class LanguageIndexRequest extends BaseFormRequest
{
protected function getEndpointName(): string
return 'languages.index';
}
public function rules(): array
return [
'limit' => 'nullable|int|max:100',
'is_active' => 'nullable|bool',
];
public function getLimit(): int
return $this->input('limit') ?: 10;
public function wantsActiveLanguages(): bool
return $this->boolean('is_active');