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;
* * @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 |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
USER | soleferroefogo |
HOME | /home/soleferroefogo |
FCGI_ROLE | RESPONDER |
REDIRECT_UNIQUE_ID | ZgZja9dpQ67qlG9ci0CdogAAChs |
REDIRECT_HTTP_AUTHORIZATION | |
REDIRECT_SCRIPT_URL | /produto/fogao-hmd-modelo-turin-c-chapa-de-vitroceramico-cor-preto |
REDIRECT_SCRIPT_URI | https://soleferroefogo.com.br/produto/fogao-hmd-modelo-turin-c-chapa-de-vitroceramico-cor-preto |
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 | 3092947-129-3 |
REDIRECT_STATUS | 200 |
UNIQUE_ID | ZgZja9dpQ67qlG9ci0CdogAAChs |
HTTP_AUTHORIZATION | |
SCRIPT_URL | /produto/fogao-hmd-modelo-turin-c-chapa-de-vitroceramico-cor-preto |
SCRIPT_URI | https://soleferroefogo.com.br/produto/fogao-hmd-modelo-turin-c-chapa-de-vitroceramico-cor-preto |
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 | 3092947-129-3 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_REFERER | http://soleferroefogo.com.br/produto/fogao-hmd-modelo-turin-c-chapa-de-vitroceramico-cor-preto |
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 | 18.204.35.30 |
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 | 46876 |
REDIRECT_URL | /produto/fogao-hmd-modelo-turin-c-chapa-de-vitroceramico-cor-preto |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/2.0 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /produto/fogao-hmd-modelo-turin-c-chapa-de-vitroceramico-cor-preto |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711694699.08 |
REQUEST_TIME | 1711694699 |
argv | Array ( ) |
argc | 0 |
Key | Value |
_sf2_attributes | Array ( [_token] => 9XMR3kzmLkCRLT44oCLA2oXVDNJNkarcFmfDnkCM ) |
_sf2_flashes | Array ( ) |
_sf2_meta | Array ( [u] => 1711694699 [c] => 1711694699 [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 | ZgZja9dpQ67qlG9ci0CdogAAChs |
REDIRECT_HTTP_AUTHORIZATION | |
REDIRECT_SCRIPT_URL | /produto/fogao-hmd-modelo-turin-c-chapa-de-vitroceramico-cor-preto |
REDIRECT_SCRIPT_URI | https://soleferroefogo.com.br/produto/fogao-hmd-modelo-turin-c-chapa-de-vitroceramico-cor-preto |
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 | 3092947-129-3 |
REDIRECT_STATUS | 200 |
UNIQUE_ID | ZgZja9dpQ67qlG9ci0CdogAAChs |
HTTP_AUTHORIZATION | |
SCRIPT_URL | /produto/fogao-hmd-modelo-turin-c-chapa-de-vitroceramico-cor-preto |
SCRIPT_URI | https://soleferroefogo.com.br/produto/fogao-hmd-modelo-turin-c-chapa-de-vitroceramico-cor-preto |
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 | 3092947-129-3 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_REFERER | http://soleferroefogo.com.br/produto/fogao-hmd-modelo-turin-c-chapa-de-vitroceramico-cor-preto |
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 | 18.204.35.30 |
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 | 46876 |
REDIRECT_URL | /produto/fogao-hmd-modelo-turin-c-chapa-de-vitroceramico-cor-preto |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/2.0 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /produto/fogao-hmd-modelo-turin-c-chapa-de-vitroceramico-cor-preto |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711694699.08 |
REQUEST_TIME | 1711694699 |
argv | Array ( ) |
argc | 0 |