protected function notInstantiable($concrete)
    {
        if (! empty($this->buildStack)) {
            $previous = implode(', ', $this->buildStack);

            $message = "Target [$concrete] is not instantiable while building [$previous].";
        } else {
            $message = "Target [$concrete] is not instantiable.";
        }

        throw new BindingResolutionException($message);
    }
protected function notInstantiable($concrete)
    {
        if (! empty($this->buildStack)) {
            $previous = implode(', ', $this->buildStack);

            $message = "Target [$concrete] is not instantiable while building [$previous].";
        } else {
            $message = "Target [$concrete] is not instantiable.";
        }

        throw new BindingResolutionException($message);
    }
protected function notInstantiable ( $ concrete ) { if ( ! empty ( $ this -> buildStack ) ) { $ previous = implode ( ', ' , $ this -> buildStack ) ; $ message = "Target [$concrete] is not instantiable while building [$previous]." ; } else { $ message = "Target [$concrete] is not instantiable." ; } throw new BindingResolutionException ( $ message ) ; }
Throw an exception that the concrete is not instantiable.

@param  string  $concrete
@return void

@throws \Illuminate\Contracts\Container\BindingResolutionException
Throw an exception that the concrete is not instantiable .