26 lines
537 B
PHP
26 lines
537 B
PHP
<?php
|
|
|
|
namespace App\Domains\Tenant\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
use Illuminate\Validation\Rule;
|
|
|
|
class StoreTenantPropRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'codigo' => ['required', 'string', 'max:255', Rule::unique('tenant_props', 'codigo')],
|
|
'prop_type' => ['required', 'string', 'max:255'],
|
|
];
|
|
}
|
|
}
|