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();
* * @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); }; }
$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/5-itens-que-voce-deveria-saber-sobre-carrinhos-de-limpeza |
REDIRECT_SCRIPT_URL | /blog/5-itens-que-voce-deveria-saber-sobre-carrinhos-de-limpeza |
REDIRECT_SSL_TLS_SNI | www.sancapel.com.br |
REDIRECT_STATUS | 200 |
REDIRECT_UNIQUE_ID | ZgbdI7-8MzYAAEmVQ@UAAAAM |
REDIRECT_URL | /blog/5-itens-que-voce-deveria-saber-sobre-carrinhos-de-limpeza |
REMOTE_ADDR | 44.223.94.103 |
REMOTE_PORT | 53276 |
REQUEST_METHOD | GET |
REQUEST_URI | /blog/5-itens-que-voce-deveria-saber-sobre-carrinhos-de-limpeza |
SCRIPT_FILENAME | /home/storage/6/8d/b0/sancapel2/public_html/index.php |
SCRIPT_NAME | /index.php |
SCRIPT_URI | https://www.sancapel.com.br/blog/5-itens-que-voce-deveria-saber-sobre-carrinhos-de-limpeza |
SCRIPT_URL | /blog/5-itens-que-voce-deveria-saber-sobre-carrinhos-de-limpeza |
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 | ZgbdI7-8MzYAAEmVQ@UAAAAM |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711725859.8132 |
REQUEST_TIME | 1711725859 |
Key | Value |
_sf2_attributes | Array ( [_token] => MPqh5aRJRK1OsJBbXD1sqw6VCWrwWVVJyPbX4pWA ) |
_sf2_flashes | Array ( ) |
_sf2_meta | Array ( [u] => 1711725859 [c] => 1711725859 [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/5-itens-que-voce-deveria-saber-sobre-carrinhos-de-limpeza |
REDIRECT_SCRIPT_URL | /blog/5-itens-que-voce-deveria-saber-sobre-carrinhos-de-limpeza |
REDIRECT_SSL_TLS_SNI | www.sancapel.com.br |
REDIRECT_STATUS | 200 |
REDIRECT_UNIQUE_ID | ZgbdI7-8MzYAAEmVQ@UAAAAM |
REDIRECT_URL | /blog/5-itens-que-voce-deveria-saber-sobre-carrinhos-de-limpeza |
REMOTE_ADDR | 44.223.94.103 |
REMOTE_PORT | 53276 |
REQUEST_METHOD | GET |
REQUEST_URI | /blog/5-itens-que-voce-deveria-saber-sobre-carrinhos-de-limpeza |
SCRIPT_FILENAME | /home/storage/6/8d/b0/sancapel2/public_html/index.php |
SCRIPT_NAME | /index.php |
SCRIPT_URI | https://www.sancapel.com.br/blog/5-itens-que-voce-deveria-saber-sobre-carrinhos-de-limpeza |
SCRIPT_URL | /blog/5-itens-que-voce-deveria-saber-sobre-carrinhos-de-limpeza |
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 | ZgbdI7-8MzYAAEmVQ@UAAAAM |