Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Erro na Route

Quando fui testar '/produtos' apareceu:


C:\xampp\htdocs\estoque\vendor\laravel\framework\src\Illuminate\Container\Container.php
    }

    /**
     * Instantiate a concrete instance of the given type.
     *
     * @param  string  $concrete
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Container\BindingResolutionException
     */
    public function build($concrete)
    {
        // If the concrete type is actually a Closure, we will just execute it and
        // hand back the results of the functions, which allows functions to be
        // used as resolvers for more fine-tuned resolution of these objects.
        if ($concrete instanceof Closure) {
            return $concrete($this, $this->getLastParameterOverride());
        }

        $reflector = new ReflectionClass($concrete);

        // If the type is not instantiable, the developer is attempting to resolve
        // an abstract type such as an Interface of Abstract Class and there is
        // no binding registered for the abstractions so we need to bail out.
        if (! $reflector->isInstantiable()) {
            return $this->notInstantiable($concrete);
        }

        $this->buildStack[] = $concrete;

        $constructor = $reflector->getConstructor();

        // If there are no constructors, that means there are no dependencies then
        // we can just resolve the instances of the objects right away, without
        // resolving any other types or dependencies out of these containers.
        if (is_null($constructor)) {
            array_pop($this->buildStack);

            return new $concrete;
        }
Arguments
"Class estoque\Http\Controllers\ProdutoController does not exist"
2 respostas
solução!

Oi Suélen,

O erro apareceu ao final da mensagem:

"Class estoque\Http\Controllers\ProdutoController does not exist"

Verifica se você criou certinho a classe ProdutoController dentro do diretório app\Http\Controllers.

Realmente não estava. Obrigada!