27. ErrorException
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­Connector.php47
26. Illuminate\Exception\Handler handleError
<#unknown>0
25. PDO __construct
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­Connector.php47
24. Illuminate\Database\Connectors\Connector createConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­MySqlConnector.php20
23. Illuminate\Database\Connectors\MySqlConnector connect
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­ConnectionFactory.php41
22. Illuminate\Database\Connectors\ConnectionFactory make
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­DatabaseManager.php115
21. Illuminate\Database\DatabaseManager makeConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­DatabaseManager.php64
20. Illuminate\Database\DatabaseManager connection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php2374
19. Illuminate\Database\Eloquent\Model resolveConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php2340
18. Illuminate\Database\Eloquent\Model getConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php1443
17. Illuminate\Database\Eloquent\Model newBaseQueryBuilder
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php1377
16. Illuminate\Database\Eloquent\Model newQuery
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php2552
15. Illuminate\Database\Eloquent\Model __call
<#unknown>0
14. Notas where
<#unknown>0
13. call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php2568
12. Illuminate\Database\Eloquent\Model __callStatic
…/­app/­controllers/­HomeController.php75
11. Notas where
…/­app/­controllers/­HomeController.php75
10. HomeController prensa
<#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
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php985
6. Illuminate\Routing\Router Illuminate\Routing\{closure}
<#unknown>0
5. call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Route.php80
4. Illuminate\Routing\Route callCallable
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Route.php47
3. Illuminate\Routing\Route run
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php1016
2. Illuminate\Routing\Router dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php530
1. Illuminate\Foundation\Application dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php506
0. Illuminate\Foundation\Application run
…/­index.php49

ErrorException

PDO::__construct(): MySQL server has gone away

	 */
	public function createConnection($dsn, array $config, array $options)
	{
		$username = array_get($config, 'username');
 
		$password = array_get($config, 'password');
 
		return new PDO($dsn, $username, $password, $options);
	}
 
<#unknown>
	 */
	public function createConnection($dsn, array $config, array $options)
	{
		$username = array_get($config, 'username');
 
		$password = array_get($config, 'password');
 
		return new PDO($dsn, $username, $password, $options);
	}
 
		$dsn = $this->getDsn($config);
 
		// We need to grab the PDO options that should be used while making the brand
		// new connection instance. The PDO options control various aspects of the
		// connection's behavior, and some might be specified by the developers.
		$options = $this->getOptions($config);
 
		$connection = $this->createConnection($dsn, $config, $options);
 
		$collation = $config['collation'];
	 * @param  string  $name
	 * @return \Illuminate\Database\Connection
	 */
	public function make(array $config, $name = null)
	{
		$config = $this->parseConfig($config, $name);
 
		$pdo = $this->createConnector($config)->connect($config);
 
		return $this->createConnection($config['driver'], $pdo, $config['database'], $config['prefix'], $config);
		// and will call the Closure if so, which allows us to have a more generic
		// resolver for the drivers themselves which applies to all connections.
		if (isset($this->extensions[$driver]))
		{
			return call_user_func($this->extensions[$driver], $config);
		}

		return $this->factory->make($config, $name);
	}

		$name = $name ?: $this->getDefaultConnection();

		// If we haven't created this connection, we'll create it based on the config
		// provided in the application. Once we've created the connections we will
		// set the "fetch mode" for PDO which determines the query return types.
		if ( ! isset($this->connections[$name]))
		{
			$connection = $this->makeConnection($name);

			$this->connections[$name] = $this->prepare($connection);
	 * Resolve a connection instance.
	 *
	 * @param  string  $connection
	 * @return \Illuminate\Database\Connection
	 */
	public static function resolveConnection($connection = null)
	{
		return static::$resolver->connection($connection);
	}
 
	/**
	 * Get the database connection for the model.
	 *
	 * @return \Illuminate\Database\Connection
	 */
	public function getConnection()
	{
		return static::resolveConnection($this->connection);
	}
 
	/**
	 * Get a new query builder instance for the connection.
	 *
	 * @return \Illuminate\Database\Query\Builder
	 */
	protected function newBaseQueryBuilder()
	{
		$conn = $this->getConnection();
 
		$grammar = $conn->getQueryGrammar();
	 * Get a new query builder for the model's table.
	 *
	 * @param  bool  $excludeDeleted
	 * @return \Illuminate\Database\Eloquent\Builder|static
	 */
	public function newQuery($excludeDeleted = true)
	{
		$builder = new Builder($this->newBaseQueryBuilder());
 
		// Once we have the query builders, we will set the model instances so the
	public function __call($method, $parameters)
	{
		if (in_array($method, array('increment', 'decrement')))
		{
			return call_user_func_array(array($this, $method), $parameters);
		}
 
		$query = $this->newQuery();
 
		return call_user_func_array(array($query, $method), $parameters);
<#unknown>
<#unknown>
	 * @param  array   $parameters
	 * @return mixed
	 */
	public static function __callStatic($method, $parameters)
	{
		$instance = new static;
 
		return call_user_func_array(array($instance, $method), $parameters);
	}
 
		$this->params['widgets'][] = array("name"=>"contactenos","params"=>array("calle"=>"Carlos Pellegrini 91"));			
						
		return $this->makeView('ion.notas');		
	}

	public function prensa(){

		$this->params['notas'] = Notas::where("categoria","=","PRENSA")->orderBy("fecha_creacion","desc")->paginate(5);			
		
		$this->params['widgets'][] = array("name"=>"twitter","params"=>array());
		$this->params['widgets'][] = array("name"=>"contactenos","params"=>array("calle"=>"Carlos Pellegrini 91"));			
						
		return $this->makeView('ion.notas');		
	}

	public function prensa(){

		$this->params['notas'] = Notas::where("categoria","=","PRENSA")->orderBy("fecha_creacion","desc")->paginate(5);			
		
		$this->params['widgets'][] = array("name"=>"twitter","params"=>array());
<#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);
		}
 
			// We will extract the passed in parameters off of the route object so we will
			// pass them off to the controller method as arguments. We will not get the
			// defaults so that the controllers will be able to use its own defaults.
			$args = array_values($route->getParametersWithoutDefaults());
 
			$instance = $ioc->make($controller);
 
			return $instance->callAction($ioc, $me, $method, $args);
		};
	}
<#unknown>
	 *
	 * @return mixed
	 */
	protected function callCallable()
	{
		$variables = array_values($this->getParametersWithoutDefaults());
 
		return call_user_func_array($this->getOption('_call'), $variables);
	}
 
		// We will only call the router callable if no "before" middlewares returned
		// a response. If they do, we will consider that the response to requests
		// so that the request "lifecycle" will be easily halted for filtering.
		$response = $this->callBeforeFilters($request);
 
		if ( ! isset($response))
		{
			$response = $this->callCallable();
		}
 
		// Once we have the route, we can just run it to get the responses, which will
		// always be instances of the Response class. Once we have the responses we
		// will execute the global "after" middlewares to finish off the request.
		else
		{
			$this->currentRoute = $route = $this->findRoute($request);
 
			$response = $route->run($request);
		}
 
		if ($this->isDownForMaintenance())
		{
			$response = $this['events']->until('illuminate.app.down');
 
			if ( ! is_null($response)) return $this->prepareResponse($response, $request);
		}
		
		return $this['router']->dispatch($this->prepareRequest($request));
	}
 
	/**
	 * Handles the given request and delivers the response.
	 *
	 * @return void
	 */
	public function run()
	{
		$response = $this->dispatch($this['request']);
 
		$this['router']->callCloseFilter($this['request'], $response);
| 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
USER i5000508
HOME /home/i5000508
FCGI_ROLE RESPONDER
REDIRECT_UNIQUE_ID ZgVlZskS9optPNXKXjhyxAAAAQM
REDIRECT_MMDB_ADDR 52.91.84.219
REDIRECT_MMDB_INFO result found
REDIRECT_MM_CONTINENT_CODE NA
REDIRECT_MM_COUNTRY_CODE US
REDIRECT_SCRIPT_URL /prensa
REDIRECT_SCRIPT_URI http://santiagomontoya.com.ar/prensa
REDIRECT_STATUS 200
UNIQUE_ID ZgVlZskS9optPNXKXjhyxAAAAQM
MMDB_ADDR 52.91.84.219
MMDB_INFO result found
MM_CONTINENT_CODE NA
MM_COUNTRY_CODE US
SCRIPT_URL /prensa
SCRIPT_URI http://santiagomontoya.com.ar/prensa
proxy-nokeepalive 1
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST santiagomontoya.com.ar
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH /opt/apache/lib
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME santiagomontoya.com.ar
SERVER_ADDR 200.58.112.133
SERVER_PORT 80
REMOTE_ADDR 52.91.84.219
DOCUMENT_ROOT /home/i5000508/public_html
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/i5000508/public_html
SERVER_ADMIN webmaster@santiagomontoya.com.ar
SCRIPT_FILENAME /home/i5000508/public_html/index.php
REMOTE_PORT 56844
REDIRECT_URL /prensa
REDIRECT_QUERY_STRING page=1
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING page=1
REQUEST_URI /prensa?page=1
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711629670.3359
REQUEST_TIME 1711629670
argv Array ( [0] => page=1 )
argc 1
Key Value
page 1
empty
empty
empty
Key Value
_sf2_attributes Array ( [_token] => Zx6cPJgpymz1pgeU4e8k2dAKC1EOSRXlfnyGPiuS )
_sf2_flashes Array ( )
_sf2_meta Array ( [u] => 1711629670 [c] => 1711629670 [l] => 7200 )
Key Value
USER i5000508
HOME /home/i5000508
FCGI_ROLE RESPONDER
REDIRECT_UNIQUE_ID ZgVlZskS9optPNXKXjhyxAAAAQM
REDIRECT_MMDB_ADDR 52.91.84.219
REDIRECT_MMDB_INFO result found
REDIRECT_MM_CONTINENT_CODE NA
REDIRECT_MM_COUNTRY_CODE US
REDIRECT_SCRIPT_URL /prensa
REDIRECT_SCRIPT_URI http://santiagomontoya.com.ar/prensa
REDIRECT_STATUS 200
UNIQUE_ID ZgVlZskS9optPNXKXjhyxAAAAQM
MMDB_ADDR 52.91.84.219
MMDB_INFO result found
MM_CONTINENT_CODE NA
MM_COUNTRY_CODE US
SCRIPT_URL /prensa
SCRIPT_URI http://santiagomontoya.com.ar/prensa
proxy-nokeepalive 1
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST santiagomontoya.com.ar
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH /opt/apache/lib
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME santiagomontoya.com.ar
SERVER_ADDR 200.58.112.133
SERVER_PORT 80
REMOTE_ADDR 52.91.84.219
DOCUMENT_ROOT /home/i5000508/public_html
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/i5000508/public_html
SERVER_ADMIN webmaster@santiagomontoya.com.ar
SCRIPT_FILENAME /home/i5000508/public_html/index.php
REMOTE_PORT 56844
REDIRECT_URL /prensa
REDIRECT_QUERY_STRING page=1
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING page=1
REQUEST_URI /prensa?page=1
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711629670.3359
REQUEST_TIME 1711629670
argv Array ( [0] => page=1 )
argc 1
0. Whoops\Handler\PrettyPageHandler