File "ItemsRequest.php"
Full Path: /home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/app/Http/Requests/ItemsRequest.php
File size: 707 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ItemsRequest 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.
*/
public function rules(): array
{
return [
'name' => [
'required',
],
'price' => [
'required',
],
'unit_id' => [
'nullable',
],
'description' => [
'nullable',
],
];
}
}