app/Http/Requests/ApiDeliveryAddressRequest.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()
    {
        return [
            'delivery_area' => 'required|string',
            'complete_address' => 'required|string',
            'contact_no' => 'required|numeric|digits:10',
            'delivery_instructions' => 'string',
            'latitude' => 'required|numeric',
            'longitude' => 'required|numeric',
            'nickname' => 'required|string'
        ];
    }
public function rules ( ) { return [ 'delivery_area' => 'required|string' , 'complete_address' => 'required|string' , 'contact_no' => 'required|numeric|digits:10' , 'delivery_instructions' => 'string' , 'latitude' => 'required|numeric' , 'longitude' => 'required|numeric' , 'nickname' => 'required|string' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .