35. yajra\Pdo\Oci8\Exceptions\SqlException
…/­vendor/­yajra/­laravel-pdo-via-oci8/­src/­yajra/­Pdo/­Oci8.php74
34. yajra\Pdo\Oci8 __construct
…/­vendor/­yajra/­laravel-oci8/­src/­yajra/­Oci8/­Connectors/­OracleConnector.php37
33. yajra\Oci8\Connectors\OracleConnector createConnection
…/­vendor/­yajra/­laravel-oci8/­src/­yajra/­Oci8/­Connectors/­OracleConnector.php51
32. yajra\Oci8\Connectors\OracleConnector connect
…/­vendor/­yajra/­laravel-oci8/­src/­yajra/­Oci8/­Oci8ServiceProvider.php47
31. yajra\Oci8\Oci8ServiceProvider yajra\Oci8\{closure}
<#unknown>0
30. call_user_func
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­DatabaseManager.php114
29. Illuminate\Database\DatabaseManager makeConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­DatabaseManager.php63
28. Illuminate\Database\DatabaseManager connection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php2661
27. Illuminate\Database\Eloquent\Model resolveConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php2627
26. Illuminate\Database\Eloquent\Model getConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php1698
25. Illuminate\Database\Eloquent\Model newBaseQueryBuilder
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php1621
24. Illuminate\Database\Eloquent\Model newQuery
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php2840
23. Illuminate\Database\Eloquent\Model __call
<#unknown>0
22. Entidad where
<#unknown>0
21. call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php2856
20. Illuminate\Database\Eloquent\Model __callStatic
…/­app/­models/­Entidad.php19
19. Entidad where
…/­app/­models/­Entidad.php19
18. Entidad listarEntidades
…/­app/­controllers/­QuerellaController.php6
17. QuerellaController indexQuerella
<#unknown>0
16. call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Controller.php231
15. Illuminate\Routing\Controller callAction
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­ControllerDispatcher.php93
14. Illuminate\Routing\ControllerDispatcher call
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­ControllerDispatcher.php62
13. Illuminate\Routing\ControllerDispatcher dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php934
12. Illuminate\Routing\Router Illuminate\Routing\{closure}
<#unknown>0
11. call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Route.php105
10. Illuminate\Routing\Route run
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php1000
9. Illuminate\Routing\Router dispatchToRoute
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php968
8. Illuminate\Routing\Router dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php738
7. Illuminate\Foundation\Application dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php708
6. Illuminate\Foundation\Application handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Http/­FrameGuard.php38
5. Illuminate\Http\FrameGuard handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Session/­Middleware.php72
4. Illuminate\Session\Middleware handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Cookie/­Queue.php47
3. Illuminate\Cookie\Queue handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Cookie/­Guard.php51
2. Illuminate\Cookie\Guard handle
…/­vendor/­stack/­builder/­src/­Stack/­StackedHttpKernel.php23
1. Stack\StackedHttpKernel handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php606
0. Illuminate\Foundation\Application run
…/­public/­index.php49

yajra \ Pdo \ Oci8 \ Exceptions \ SqlException

ORA-12543: TNS:destination host unreachable

        } else {
            $this->_dbh = @oci_connect($username, $password, $dsn, $options['charset']);
        }
 
        //Check if connection was successful
        if (!$this->_dbh) {
            $e = oci_error();
            throw new Oci8\Exceptions\SqlException($e['message']);
        }
 
    {
        // add fallback in case driver is not set, will use pdo instead
        if ( !in_array($config['driver'], array('oci8', 'pdo-via-oci8', 'oracle')) ) {
            return parent::createConnection($tns, $config, $options);
        }
 
        $options['charset'] = $config['charset'];
        return new \yajra\Pdo\Oci8($tns, $config['username'], $config['password'], $options);
    }
 
     */
    public function connect(array $config)
    {
        $tns = $this->getDsn($config);
 
        $options = $this->getOptions($config);
 
        $connection = $this->createConnection($tns, $config, $options);
 
        return $connection;
				continue;
			}
 
			//Create a connector
	        $this->app['db']->extend($conn, function($config)
	        {
	            $connector = new Connectors\OracleConnector();
	            $connection = $connector->connect($config);
	            $db = new Oci8Connection($connection, $config["database"], $config["prefix"]);
	            // set oracle date format to match PHP's date
<#unknown>
		$config = $this->getConfig($name);

		// First we will check by the connection name to see if an extension has been
		// registered specifically for that connection. If it has we will call the
		// Closure and pass it the config allowing it to resolve the connection.
		if (isset($this->extensions[$name]))
		{
			return call_user_func($this->extensions[$name], $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 = $this->newEloquentBuilder($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);
	}
 
    
    public static function listarEntidades(){
      $entidades[''] = 'Seleccione :';

      $entidades += Entidad::where(function($query) {
                          $query->where('entidad', '>', 1)
                                  ->where('entidad', '<', 22);
                      })->lists('razon_social','entidad');

      return $entidades;
    
    public static function listarEntidades(){
      $entidades[''] = 'Seleccione :';

      $entidades += Entidad::where(function($query) {
                          $query->where('entidad', '>', 1)
                                  ->where('entidad', '<', 22);
                      })->lists('razon_social','entidad');

      return $entidades;
<?php

class QuerellaController extends BaseController {

	public function indexQuerella()	{
    $entidades = Entidad::listarEntidades();
    $tipoActuacion = TipoActuacion::listarTiposdeActuacion();
    return View::make('querella/index', array('entidades'=> $entidades), array('tipoActuacion'=> $tipoActuacion));
	}
  
<#unknown>
	 * @param array   $parameters
	 * @return \Symfony\Component\HttpFoundation\Response
	 */
	public function callAction($method, $parameters)
	{
		$this->setupLayout();
 
		$response = call_user_func_array(array($this, $method), $parameters);
 
		// If no response is returned from the controller action and a layout is being
	 * @param  string  $method
	 * @return mixed
	 */
	protected function call($instance, $route, $method)
	{
		$parameters = $route->parametersWithoutNulls();
 
		return $instance->callAction($method, $parameters);
	}
 
		$response = $this->before($instance, $route, $request, $method);
 
		// If no before filters returned a response we'll call the method on the controller
		// to get the response to be returned to the router. We will then return it back
		// out for processing by this router and the after filters can be called then.
		if (is_null($response))
		{
			$response = $this->call($instance, $route, $method);
		}
 
			$request = $me->getCurrentRequest();
 
			// Now we can split the controller and method out of the action string so that we
			// can call them appropriately on the class. This controller and method are in
			// in the Class@method format and we need to explode them out then use them.
			list($class, $method) = explode('@', $controller);
 
			return $d->dispatch($route, $request, $class, $method);
		};
	}
<#unknown>
	 *
	 * @return mixed
	 */
	public function run()
	{
		$parameters = array_filter($this->parameters(), function($p) { return isset($p); });

		return call_user_func_array($this->action['uses'], $parameters);
	}

		// Once we have successfully matched the incoming request to a given route we
		// can call the before filters on that route. This works similar to global
		// filters in that if a response is returned we will not call the route.
		$response = $this->callRouteBefore($route, $request);
 
		if (is_null($response))
		{
			$response = $route->run($request);
		}
 
		// If no response was returned from the before filter, we will call the proper
		// route instance to get the response. If no route is found a response will
		// still get returned based on why no routes were found for this request.
		$response = $this->callFilter('before', $request);
 
		if (is_null($response))
		{
			$response = $this->dispatchToRoute($request);
		}
 
		}
 
		if ($this->runningUnitTests() && ! $this['session']->isStarted())
		{
			$this['session']->start();
		}
 
		return $this['router']->dispatch($this->prepareRequest($request));
	}
 
	{
		try
		{
			$this->refreshRequest($request = Request::createFromBase($request));
 
			$this->boot();
 
			return $this->dispatch($request);
		}
		catch (\Exception $e)
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @param  int   $type
	 * @param  bool  $catch
	 * @return \Symfony\Component\HttpFoundation\Response
	 */
	public function handle(SymfonyRequest $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
	{
		$response = $this->app->handle($request, $type, $catch);
 
		$response->headers->set('X-Frame-Options', 'SAMEORIGIN', false);
		if ($this->sessionConfigured())
		{
			$session = $this->startSession($request);
 
			$request->setSession($session);
		}
 
		$response = $this->app->handle($request, $type, $catch);
 
		// Again, if the session has been configured we will need to close out the session
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @param  int   $type
	 * @param  bool  $catch
	 * @return \Symfony\Component\HttpFoundation\Response
	 */
	public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
	{
		$response = $this->app->handle($request, $type, $catch);
 
		foreach ($this->cookies->getQueuedCookies() as $cookie)
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @param  int   $type
	 * @param  bool  $catch
	 * @return \Symfony\Component\HttpFoundation\Response
	 */
	public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
	{
		return $this->encrypt($this->app->handle($this->decrypt($request), $type, $catch));
	}
 
    {
        $this->app = $app;
        $this->middlewares = $middlewares;
    }
 
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        return $this->app->handle($request, $type, $catch);
    }
 
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @return void
	 */
	public function run(SymfonyRequest $request = null)
	{
		$request = $request ?: $this['request'];
 
		$response = with($stack = $this->getStackedClient())->handle($request);
 
		$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 application we have whipped up for them.
|
*/

$app->run();
 
Key Value
REDIRECT_NSL_LANG LATIN AMERICAN SPANISH_COLOMBIA.WE8ISO8859P1
REDIRECT_umask 002
REDIRECT_STATUS 200
NSL_LANG LATIN AMERICAN SPANISH_COLOMBIA.WE8ISO8859P1
umask 002
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST www.martires.gov.co
HTTP_X_FORWARDED_FOR 18.232.88.17
HTTP_X_REAL_IP 18.232.88.17
HTTP_X_FORWARDED_PROTO http
PATH /usr/local/bin:/usr/bin:/bin
SERVER_SIGNATURE <address>Apache/2.2.22 (Debian) Server at www.martires.gov.co Port 80</address>
SERVER_SOFTWARE Apache/2.2.22 (Debian)
SERVER_NAME www.martires.gov.co
SERVER_ADDR 192.168.70.4
SERVER_PORT 80
REMOTE_ADDR 192.168.14.20
DOCUMENT_ROOT /var/www
SERVER_ADMIN webmaster@localhost
SCRIPT_FILENAME /var/www/servicios_web_relatoria/index.php
REMOTE_PORT 25840
REDIRECT_URL /servicios_web_relatoria/querella/index
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /servicios_web_relatoria/querella/index
SCRIPT_NAME /servicios_web_relatoria/index.php
PHP_SELF /servicios_web_relatoria/index.php
REQUEST_TIME_FLOAT 1711645731.927
REQUEST_TIME 1711645731
argv Array ( )
argc 0
APP_ENV production
DB_HOST 172.16.9.12
DB_PORT 1535
DB_NAME gobierno
DB_USERNAME actua
DB_PASSWORD actua
empty
empty
empty
empty
empty
Key Value
APACHE_RUN_DIR /var/run/apache2
APACHE_PID_FILE /var/run/apache2.pid
PATH /usr/local/bin:/usr/bin:/bin
APACHE_LOCK_DIR /var/lock/apache2
LANG C
APACHE_RUN_USER www-data
APACHE_RUN_GROUP www-data
APACHE_LOG_DIR /var/log/apache2
PWD /
ORACLE_HOME /usr/lib/oracle/11.2/client64/lib
APP_ENV production
DB_HOST 172.16.9.12
DB_PORT 1535
DB_NAME gobierno
DB_USERNAME actua
DB_PASSWORD actua
0. Whoops\Handler\PrettyPageHandler