Cotizaciones/app/Http/Requests/InstitucioneRequest.php
2026-04-24 11:19:03 -07:00

33 lines
696 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class InstitucioneRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'nombre' => 'required|string',
'cve_institucion' => 'string',
'usuario_sep' => 'string',
'password_sep' => 'string',
'activo' => 'required',
];
}
}