app/Http/Requests/ApiCreateOrderRequest.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 [
            'basket_items' => 'required|array|min:1',
            'gross_amount' => 'required|string',
            'discount' => 'required|string',
            'net_amount' => 'required|string'
        ];
    }
public function rules ( ) { return [ 'basket_items' => 'required|array|min:1' , 'gross_amount' => 'required|string' , 'discount' => 'required|string' , 'net_amount' => 'required|string' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .