12. ErrorException
…/­app/­controllers/­IndexController.php130
11. Illuminate\Exception\Handler handleError
…/­app/­controllers/­IndexController.php130
10. IndexController produto
<#unknown>0
9. call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Controllers/­Controller.php138
8. Illuminate\Routing\Controllers\Controller callMethod
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Controllers/­Controller.php115
7. Illuminate\Routing\Controllers\Controller callAction
…/­bootstrap/­compiled.php4769
6. Illuminate\Routing\Router Illuminate\Routing\{closure}
<#unknown>0
5. call_user_func_array
…/­bootstrap/­compiled.php7839
4. Illuminate\Routing\Route callCallable
…/­bootstrap/­compiled.php7826
3. Illuminate\Routing\Route run
…/­bootstrap/­compiled.php4780
2. Illuminate\Routing\Router dispatch
…/­bootstrap/­compiled.php483
1. Illuminate\Foundation\Application dispatch
…/­bootstrap/­compiled.php472
0. Illuminate\Foundation\Application run
…/­www/­index.php49

ErrorException

Trying to get property of non-object

 
	public function produto($slug)
	{
		// $id = Crypt::decrypt($id);
		// $destinos = Destino::find($id);
		$slug = $slug;
		$produto = Produto::where('slug', '=', $slug)->first();
		$nomeCategoria = Categoria::where('id', $produto->categoria)->first();
		$produtoEditar = Produto::find($produto->id);
		$produtoEditar->contador = $produtoEditar->contador +1;
 
	public function produto($slug)
	{
		// $id = Crypt::decrypt($id);
		// $destinos = Destino::find($id);
		$slug = $slug;
		$produto = Produto::where('slug', '=', $slug)->first();
		$nomeCategoria = Categoria::where('id', $produto->categoria)->first();
		$produtoEditar = Produto::find($produto->id);
		$produtoEditar->contador = $produtoEditar->contador +1;
<#unknown>
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	protected function callMethod($method, $parameters)
	{
		return call_user_func_array(array($this, $method), $parameters);
	}
 
		// after filters on the controller to wrap up any last minute processing.
		$response = $this->callBeforeFilters($router, $method);
 
		$this->setupLayout();
 
		if (is_null($response))
		{
			$response = $this->callMethod($method, $parameters);
		}
 
        $ioc = $this->container;
        $me = $this;
        return function () use($me, $ioc, $attribute) {
            list($controller, $method) = explode('@', $attribute);
            $route = $me->getCurrentRoute();
            $args = array_values($route->getParametersWithoutDefaults());
            $instance = $ioc->make($controller);
            return $instance->callAction($ioc, $me, $method, $args);
        };
    }
<#unknown>
            $this->callAfterFilters($request, $response);
        }
        return $response;
    }
    protected function callCallable()
    {
        $variables = array_values($this->getParametersWithoutDefaults());
        return call_user_func_array($this->getOption('_call'), $variables);
    }
    protected function callBeforeFilters(Request $request)
    protected $parameters;
    protected $parsedParameters;
    public function run(Request $request)
    {
        $this->parsedParameters = null;
        $response = $this->callBeforeFilters($request);
        if (!isset($response)) {
            $response = $this->callCallable();
        } else {
            $fromFilter = true;
    {
        $this->currentRequest = $request;
        $response = $this->callGlobalFilter($request, 'before');
        if (!is_null($response)) {
            $response = $this->prepare($response, $request);
        } else {
            $this->currentRoute = $route = $this->findRoute($request);
            $response = $route->run($request);
        }
        $this->callAfterFilter($request, $response);
    }
    public function dispatch(Request $request)
    {
        if ($this->isDownForMaintenance()) {
            $response = $this['events']->until('illuminate.app.down');
            return $this->prepareResponse($response, $request);
        } else {
            return $this['router']->dispatch($this->prepareRequest($request));
        }
    }
            $this->fireAppCallbacks($this->shutdownCallbacks);
        } else {
            $this->shutdownCallbacks[] = $callback;
        }
    }
    public function run()
    {
        $response = $this->dispatch($this['request']);
        $this['router']->callCloseFilter($this['request'], $response);
        $response->send();
| Once we have the application, we can simply call the run method,
| which will execute the request and send the response back to
| the client's browser allowing them to enjoy the creative
| and wonderful applications we have created for them.
|
*/
 
$app->run();
 
/*
Key Value
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
USER soleferroefogo
HOME /home/soleferroefogo
FCGI_ROLE RESPONDER
REDIRECT_UNIQUE_ID ZgVZJuzkOZvho0gK_VL8AwAAxxU
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_SCRIPT_URL /produto/fogao-a-lenha-venax-no-1-sec-xviii-renaissance-c-gabinete-cor-vermelho
REDIRECT_SCRIPT_URI https://soleferroefogo.com.br/produto/fogao-a-lenha-venax-no-1-sec-xviii-renaissance-c-gabinete-cor-vermelho
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI soleferroefogo.com.br
REDIRECT_HTTP2 on
REDIRECT_H2PUSH off
REDIRECT_H2_PUSH off
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_STREAM_ID 3
REDIRECT_H2_STREAM_TAG 2096457-348-3
REDIRECT_STATUS 200
UNIQUE_ID ZgVZJuzkOZvho0gK_VL8AwAAxxU
HTTP_AUTHORIZATION
SCRIPT_URL /produto/fogao-a-lenha-venax-no-1-sec-xviii-renaissance-c-gabinete-cor-vermelho
SCRIPT_URI https://soleferroefogo.com.br/produto/fogao-a-lenha-venax-no-1-sec-xviii-renaissance-c-gabinete-cor-vermelho
HTTPS on
SSL_TLS_SNI soleferroefogo.com.br
HTTP2 on
H2PUSH off
H2_PUSH off
H2_PUSHED
H2_PUSHED_ON
H2_STREAM_ID 3
H2_STREAM_TAG 2096457-348-3
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_REFERER http://soleferroefogo.com.br/produto/fogao-a-lenha-venax-no-1-sec-xviii-renaissance-c-gabinete-cor-vermelho
HTTP_HOST soleferroefogo.com.br
HTTP_MAX_FORWARDS 10
LD_LIBRARY_PATH /usr/local/apache2/lib
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME soleferroefogo.com.br
SERVER_ADDR 191.6.222.115
SERVER_PORT 443
REMOTE_ADDR 35.172.193.238
DOCUMENT_ROOT /home/soleferroefogo/www/
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/soleferroefogo/www/
SERVER_ADMIN soleferroefogo@soleferroefogo.com.br
SCRIPT_FILENAME //home/soleferroefogo/www/index.php
REMOTE_PORT 53464
REDIRECT_URL /produto/fogao-a-lenha-venax-no-1-sec-xviii-renaissance-c-gabinete-cor-vermelho
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/2.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /produto/fogao-a-lenha-venax-no-1-sec-xviii-renaissance-c-gabinete-cor-vermelho
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711626534.94
REQUEST_TIME 1711626534
argv Array ( )
argc 0
empty
empty
empty
empty
Key Value
_sf2_attributes Array ( [_token] => Lr6PoHexnuNJm6htWgmQOX8UTfPiRhoEx5VoLpao )
_sf2_flashes Array ( )
_sf2_meta Array ( [u] => 1711626534 [c] => 1711626534 [l] => 7200 )
Key Value
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
USER soleferroefogo
HOME /home/soleferroefogo
FCGI_ROLE RESPONDER
REDIRECT_UNIQUE_ID ZgVZJuzkOZvho0gK_VL8AwAAxxU
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_SCRIPT_URL /produto/fogao-a-lenha-venax-no-1-sec-xviii-renaissance-c-gabinete-cor-vermelho
REDIRECT_SCRIPT_URI https://soleferroefogo.com.br/produto/fogao-a-lenha-venax-no-1-sec-xviii-renaissance-c-gabinete-cor-vermelho
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI soleferroefogo.com.br
REDIRECT_HTTP2 on
REDIRECT_H2PUSH off
REDIRECT_H2_PUSH off
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_STREAM_ID 3
REDIRECT_H2_STREAM_TAG 2096457-348-3
REDIRECT_STATUS 200
UNIQUE_ID ZgVZJuzkOZvho0gK_VL8AwAAxxU
HTTP_AUTHORIZATION
SCRIPT_URL /produto/fogao-a-lenha-venax-no-1-sec-xviii-renaissance-c-gabinete-cor-vermelho
SCRIPT_URI https://soleferroefogo.com.br/produto/fogao-a-lenha-venax-no-1-sec-xviii-renaissance-c-gabinete-cor-vermelho
HTTPS on
SSL_TLS_SNI soleferroefogo.com.br
HTTP2 on
H2PUSH off
H2_PUSH off
H2_PUSHED
H2_PUSHED_ON
H2_STREAM_ID 3
H2_STREAM_TAG 2096457-348-3
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_REFERER http://soleferroefogo.com.br/produto/fogao-a-lenha-venax-no-1-sec-xviii-renaissance-c-gabinete-cor-vermelho
HTTP_HOST soleferroefogo.com.br
HTTP_MAX_FORWARDS 10
LD_LIBRARY_PATH /usr/local/apache2/lib
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME soleferroefogo.com.br
SERVER_ADDR 191.6.222.115
SERVER_PORT 443
REMOTE_ADDR 35.172.193.238
DOCUMENT_ROOT /home/soleferroefogo/www/
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/soleferroefogo/www/
SERVER_ADMIN soleferroefogo@soleferroefogo.com.br
SCRIPT_FILENAME //home/soleferroefogo/www/index.php
REMOTE_PORT 53464
REDIRECT_URL /produto/fogao-a-lenha-venax-no-1-sec-xviii-renaissance-c-gabinete-cor-vermelho
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/2.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /produto/fogao-a-lenha-venax-no-1-sec-xviii-renaissance-c-gabinete-cor-vermelho
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711626534.94
REQUEST_TIME 1711626534
argv Array ( )
argc 0
0. Whoops\Handler\PrettyPageHandler