%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/geotechnics/api/app/Http/Requests/Api/v1/Clients/
Upload File :
Create Path :
Current File : /var/www/html/geotechnics/api/app/Http/Requests/Api/v1/Clients/UpdateClientRequest.php

<?php

namespace App\Http\Requests\Api\v1\Clients;

use App\Http\Requests\BaseRequest;

class UpdateClientRequest extends BaseRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'name'       => 'required',
            'company'    => 'required',
            'email'      => 'required|email',
            'phone'      => 'required',
            'country_id' => 'required|integer|exists:countries,id',
            'city'       => 'required|string',
            'street'     => 'required|string',
            'zip_code'   => 'required|string',
        ];
    }
}

Zerion Mini Shell 1.0