File: /home/posscale/public_html/printmanager/app/Http/Requests/AddressRequest.php
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class AddressRequest 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
{
$rules = [
'customer_id' => 'required',
'address' => 'required',
'city' => 'required',
'state' => 'required',
'zip' => 'required|integer',
];
return $rules;
}
}