Files
sam-api/app/Http/Requests/Client/ClientStoreRequest.php

27 lines
696 B
PHP
Raw Normal View History

<?php
namespace App\Http\Requests\Client;
use Illuminate\Foundation\Http\FormRequest;
class ClientStoreRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'client_group_id' => 'nullable|integer',
'client_code' => 'required|string|max:50',
'name' => 'required|string|max:100',
'contact_person' => 'nullable|string|max:100',
'phone' => 'nullable|string|max:20',
'email' => 'nullable|email|max:100',
'address' => 'nullable|string|max:255',
'is_active' => 'nullable|in:Y,N',
];
}
}