12. ErrorException
…/­app/­controllers/­IndexController.php112
11. Illuminate\Exception\Handler handleError
…/­app/­controllers/­IndexController.php112
10. IndexController blog
<#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
…/­public_html/­index.php49

ErrorException

Trying to get property of non-object

		return View::make('paginas.blogs')->with('blogs', $blogs);	
	}
 
	public function blog($slug)
	{
		$slug = $slug;
		$blog = Blog::where('blogs.slug', '=', $slug)->first();
		$blogEditar = Blog::find($blog->id);
		$blogEditar->contador = $blogEditar->contador +1;
		$blogEditar->save();
		return View::make('paginas.blogs')->with('blogs', $blogs);	
	}
 
	public function blog($slug)
	{
		$slug = $slug;
		$blog = Blog::where('blogs.slug', '=', $slug)->first();
		$blogEditar = Blog::find($blog->id);
		$blogEditar->contador = $blogEditar->contador +1;
		$blogEditar->save();
<#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
DOCUMENT_ROOT /home/storage/6/8d/b0/sancapel2/public_html/
GATEWAY_INTERFACE CGI/1.1
HTTPS on
HTTP_ACCEPT */*
HTTP_HOST www.sancapel.com.br
HTTP_USER_AGENT claudebot
LOG_SUBDIR sancapel2
PATH /bin:/usr/bin
PHPRC /home/sancapel2/
QUERY_STRING
REDIRECT_HTTPS on
REDIRECT_LOG_SUBDIR sancapel2
REDIRECT_SCRIPT_URI https://www.sancapel.com.br/blog/o--mito-da-microfibra
REDIRECT_SCRIPT_URL /blog/o--mito-da-microfibra
REDIRECT_SSL_TLS_SNI www.sancapel.com.br
REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID ZgaglL-8MzYAAH9uGzAAAAAN
REDIRECT_URL /blog/o--mito-da-microfibra
REMOTE_ADDR 3.90.35.86
REMOTE_PORT 55054
REQUEST_METHOD GET
REQUEST_URI /blog/o--mito-da-microfibra
SCRIPT_FILENAME /home/storage/6/8d/b0/sancapel2/public_html/index.php
SCRIPT_NAME /index.php
SCRIPT_URI https://www.sancapel.com.br/blog/o--mito-da-microfibra
SCRIPT_URL /blog/o--mito-da-microfibra
SERVER_ADDR 191.252.51.54
SERVER_ADMIN webmaster@sancapel.com.br
SERVER_NAME www.sancapel.com.br
SERVER_PORT 443
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SSL_TLS_SNI www.sancapel.com.br
SUPHP_URI /index.php
UNIQUE_ID ZgaglL-8MzYAAH9uGzAAAAAN
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711710357.0332
REQUEST_TIME 1711710357
empty
empty
empty
empty
Key Value
_sf2_attributes Array ( [_token] => 9QQ3SSiGlrSqAZsBt5Tr8rcXoa5nzTaJS4rCve9s )
_sf2_flashes Array ( )
_sf2_meta Array ( [u] => 1711710357 [c] => 1711710357 [l] => 7200 )
Key Value
DOCUMENT_ROOT /home/storage/6/8d/b0/sancapel2/public_html/
GATEWAY_INTERFACE CGI/1.1
HTTPS on
HTTP_ACCEPT */*
HTTP_HOST www.sancapel.com.br
HTTP_USER_AGENT claudebot
LOG_SUBDIR sancapel2
PATH /bin:/usr/bin
PHPRC /home/sancapel2/
QUERY_STRING
REDIRECT_HTTPS on
REDIRECT_LOG_SUBDIR sancapel2
REDIRECT_SCRIPT_URI https://www.sancapel.com.br/blog/o--mito-da-microfibra
REDIRECT_SCRIPT_URL /blog/o--mito-da-microfibra
REDIRECT_SSL_TLS_SNI www.sancapel.com.br
REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID ZgaglL-8MzYAAH9uGzAAAAAN
REDIRECT_URL /blog/o--mito-da-microfibra
REMOTE_ADDR 3.90.35.86
REMOTE_PORT 55054
REQUEST_METHOD GET
REQUEST_URI /blog/o--mito-da-microfibra
SCRIPT_FILENAME /home/storage/6/8d/b0/sancapel2/public_html/index.php
SCRIPT_NAME /index.php
SCRIPT_URI https://www.sancapel.com.br/blog/o--mito-da-microfibra
SCRIPT_URL /blog/o--mito-da-microfibra
SERVER_ADDR 191.252.51.54
SERVER_ADMIN webmaster@sancapel.com.br
SERVER_NAME www.sancapel.com.br
SERVER_PORT 443
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SSL_TLS_SNI www.sancapel.com.br
SUPHP_URI /index.php
UNIQUE_ID ZgaglL-8MzYAAH9uGzAAAAAN
0. Whoops\Handler\PrettyPageHandler