app/Http/Requests/InvoiceRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules(): array
    {
        return [
            'from_department_id'    => 'required',
            'to_department_id'      => 'required',
            'delivery_type_id'      => 'required',
        ];
    }
public function rules ( ) : array { return [ 'from_department_id' => 'required' , 'to_department_id' => 'required' , 'delivery_type_id' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .