app/Http/Requests/StoreCustomerAddress.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 [
            'first_name' => ['bail','required','string'],
            'address' => ['bail','required', 'string'],
            'zip_code' => ['bail','required','digits:6'],
            'landmark' => ['bail','required','string','max:500'],
            'mobile_number' => ['bail','required','digits:10'],
        ];
    }
public function rules ( ) { return [ 'first_name' => [ 'bail' , 'required' , 'string' ] , 'address' => [ 'bail' , 'required' , 'string' ] , 'zip_code' => [ 'bail' , 'required' , 'digits:6' ] , 'landmark' => [ 'bail' , 'required' , 'string' , 'max:500' ] , 'mobile_number' => [ 'bail' , 'required' , 'digits:10' ] , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .