26. PDOException
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­Connector.php47
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/­PostgresConnector.php34
23. Illuminate\Database\Connectors\PostgresConnector connect
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­ConnectionFactory.php57
22. Illuminate\Database\Connectors\ConnectionFactory createSingleConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­ConnectionFactory.php46
21. Illuminate\Database\Connectors\ConnectionFactory make
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­DatabaseManager.php176
20. Illuminate\Database\DatabaseManager makeConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­DatabaseManager.php64
19. Illuminate\Database\DatabaseManager connection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­DatabaseManager.php321
18. Illuminate\Database\DatabaseManager __call
…/­vendor/­laravel/­framework/­src/­Illuminate/­Support/­Facades/­Facade.php208
17. Illuminate\Support\Facades\Facade __callStatic
…/­app/­models/­Shop/­Language.php7
16. Language multi
…/­app/­routes.php919
15. {closure}
<#unknown>0
14. call_user_func
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php696
13. Illuminate\Routing\Router group
…/­vendor/­laravel/­framework/­src/­Illuminate/­Support/­Facades/­Facade.php211
12. Illuminate\Support\Facades\Facade __callStatic
…/­app/­routes.php983
11. require
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­start.php269
10. {closure}
<#unknown>0
9. call_user_func
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php836
8. Illuminate\Foundation\Application fireAppCallbacks
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php604
7. Illuminate\Foundation\Application bootApplication
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php587
6. Illuminate\Foundation\Application boot
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php743
5. Illuminate\Foundation\Application 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.php641
0. Illuminate\Foundation\Application run
…/­index.php49

PDOException (7)

Callstack information; navigate with mouse or keyboard using Ctrl+↑ or Ctrl+↓
Copy-to-clipboard button
Exception message and its type
Code snippet where the error was thrown
Server state information
Application provided context information
PDOException thrown with message "SQLSTATE[08006] [7] FATAL: database "mobilni-svet.selltico.com" does not exist" Stacktrace: #26 PDOException in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:47 #25 PDO:__construct in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:47 #24 Illuminate\Database\Connectors\Connector:createConnection in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/PostgresConnector.php:34 #23 Illuminate\Database\Connectors\PostgresConnector:connect in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:57 #22 Illuminate\Database\Connectors\ConnectionFactory:createSingleConnection in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:46 #21 Illuminate\Database\Connectors\ConnectionFactory:make in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:176 #20 Illuminate\Database\DatabaseManager:makeConnection in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:64 #19 Illuminate\Database\DatabaseManager:connection in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:321 #18 Illuminate\Database\DatabaseManager:__call in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:208 #17 Illuminate\Support\Facades\Facade:__callStatic in /var/www/html/auto_shops/mobilni-svet.selltico.com/app/models/Shop/Language.php:7 #16 Language:multi in /var/www/html/auto_shops/mobilni-svet.selltico.com/app/routes.php:919 #15 {closure} in <#unknown>:0 #14 call_user_func in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:696 #13 Illuminate\Routing\Router:group in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:211 #12 Illuminate\Support\Facades\Facade:__callStatic in /var/www/html/auto_shops/mobilni-svet.selltico.com/app/routes.php:983 #11 require in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Foundation/start.php:269 #10 {closure} in <#unknown>:0 #9 call_user_func in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:836 #8 Illuminate\Foundation\Application:fireAppCallbacks in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:604 #7 Illuminate\Foundation\Application:bootApplication in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:587 #6 Illuminate\Foundation\Application:boot in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:743 #5 Illuminate\Foundation\Application:handle in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Session/Middleware.php:72 #4 Illuminate\Session\Middleware:handle in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php:47 #3 Illuminate\Cookie\Queue:handle in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php:51 #2 Illuminate\Cookie\Guard:handle in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/stack/builder/src/Stack/StackedHttpKernel.php:23 #1 Stack\StackedHttpKernel:handle in /var/www/html/auto_shops/mobilni-svet.selltico.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:641 #0 Illuminate\Foundation\Application:run in /var/www/html/auto_shops/mobilni-svet.selltico.com/index.php:49

SQLSTATE[08006] [7] FATAL: database "mobilni-svet.selltico.com" does not exist

	 */
	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);
	}
 
	 */
	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);
	}
 
		// First we'll create the basic DSN and connection instance connecting to the
		// using the configuration option specified by the developer. We will also
		// set the default character set on the connections to UTF-8 by default.
		$dsn = $this->getDsn($config);
 
		$options = $this->getOptions($config);
 
		$connection = $this->createConnection($dsn, $config, $options);
 
		$charset = $config['charset'];
	 * Create a single database connection instance.
	 *
	 * @param  array  $config
	 * @return \Illuminate\Database\Connection
	 */
	protected function createSingleConnection(array $config)
	{
		$pdo = $this->createConnector($config)->connect($config);
 
		return $this->createConnection($config['driver'], $pdo, $config['database'], $config['prefix'], $config);
		$config = $this->parseConfig($config, $name);
 
		if (isset($config['read']))
		{
			return $this->createReadWriteConnection($config);
		}
 
		return $this->createSingleConnection($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, $name);
		}

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

		list($name, $type) = $this->parseConnectionName($name);

		// 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->setPdoForType($connection, $type);
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	public function __call($method, $parameters)
	{
		return call_user_func_array(array($this->connection(), $method), $parameters);
	}

 
		switch (count($args))
		{
			case 0:
				return $instance->$method();
 
			case 1:
				return $instance->$method($args[0]);
 
			case 2:
<?php 


class Language {
    public static function multi(){
        // return Cache::remember('LANG_MULTI',60,function(){
            return DB::table('jezik')->where('aktivan',1)->count() > 1;
        // });
    }
    public static function segment_offset(){
Route::post('/b2b/registration',array('as'=>'b2b.registration.store','uses'=>'B2bController@registrationStore'));
Route::get('/b2b/zaboravljena-lozinka',array('as'=>'b2b.forgot_password','uses'=>'B2bController@forgotPassword'));
Route::post('/b2b/zaboravljena-lozinka',array('as'=>'b2b.forgot_password_post','uses'=>'B2bController@forgotPasswordPost'));
Route::get('/b2b/login','B2bController@login');
Route::post('/b2b/login/store',array('as'=>'b2b.login.store', 'uses'=>'B2bController@loginStore'));
//B2B
Route::group(array('prefix'=>'b2b','before'=>'b2b'),function (){
$shop_filter = Language::multi() ? array('prefix'=>'{lang}','before'=>'lang') : array('before'=>'lang');
    Route::group($shop_filter,function (){
        
<#unknown>
	public function group(array $attributes, Closure $callback)
	{
		$this->updateGroupStack($attributes);
 
		// Once we have updated the group stack, we will execute the user Closure and
		// merge in the groups attributes when the route is created. After we have
		// run the callback, we will pop the attributes off of this group stack.
		call_user_func($callback, $this);
 
		array_pop($this->groupStack);
			case 0:
				return $instance->$method();
 
			case 1:
				return $instance->$method($args[0]);
 
			case 2:
				return $instance->$method($args[0], $args[1]);
 
			case 3:
    	    Route::get('/ponuda/{ponuda_id}', 'B2bDokumentiController@ponuda');
    	    Route::post('/ponuda-post', 'B2bDokumentiController@ponuda_post');
    	    Route::get('/ponuda-stavka/{ponuda_stavka_id}/delete', 'B2bDokumentiController@ponuda_stavka_delete');
    	    Route::get('/ponuda/{ponuda_id}/delete', 'B2bDokumentiController@ponuda_delete');
    	    Route::post('/ponuda-stavka-save', 'B2bDokumentiController@ponuda_stavka_save');
        });
    });
});
 
/////////////////////////////         DOKUMENTI        ///////////////////////////////////////////////
	| just to keep the file a little cleaner. We'll go ahead and load in
	| all of the routes now and return the application to the callers.
	|
	*/
 
	$routes = $app['path'].'/routes.php';
 
	if (file_exists($routes)) require $routes;
 
});
<#unknown>
	 * @param  array  $callbacks
	 * @return void
	 */
	protected function fireAppCallbacks(array $callbacks)
	{
		foreach ($callbacks as $callback)
		{
			call_user_func($callback, $this);
		}
	}
		// Once the application has booted we will also fire some "booted" callbacks
		// for any listeners that need to do work after this initial booting gets
		// finished. This is useful when ordering the boot-up processes we run.
		$this->fireAppCallbacks($this->bootingCallbacks);
 
		$this->booted = true;
 
		$this->fireAppCallbacks($this->bootedCallbacks);
	}
 
	 */
	public function boot()
	{
		if ($this->booted) return;
 
		array_walk($this->serviceProviders, function($p) { $p->boot(); });
 
		$this->bootApplication();
	}
 
	 */
	public function handle(SymfonyRequest $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
	{
		try
		{
			$this->refreshRequest($request = Request::createFromBase($request));
 
			$this->boot();
 
			return $this->dispatch($request);
		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();
 
empty
empty
empty
empty
empty
Key Value
REDIRECT_UNIQUE_ID ZgX4Gqe1eFgw7J0lMBCH2AAAAAk
REDIRECT_PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
REDIRECT_STATUS 200
UNIQUE_ID ZgX4Gqe1eFgw7J0lMBCH2AAAAAk
PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST mobilni-svet.selltico.com
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME mobilni-svet.selltico.com
SERVER_ADDR 94.130.216.109
SERVER_PORT 80
REMOTE_ADDR 54.224.124.217
DOCUMENT_ROOT /var/www/html/auto_shops/mobilni-svet.selltico.com
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/html/auto_shops/mobilni-svet.selltico.com
SERVER_ADMIN root@localhost
SCRIPT_FILENAME /var/www/html/auto_shops/mobilni-svet.selltico.com/index.php
REMOTE_PORT 38514
REDIRECT_URL /artikal/mobilni-telefon-poco-x4-pro-5g-8-256gb-laser-black
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /artikal/mobilni-telefon-poco-x4-pro-5g-8-256gb-laser-black
SCRIPT_NAME /index.php
PATH_INFO /artikal/mobilni-telefon-poco-x4-pro-5g-8-256gb-laser-black
PATH_TRANSLATED redirect:/index.php/artikal/mobilni-telefon-poco-x4-pro-5g-8-256gb-laser-black/mobilni-telefon-poco-x4-pro-5g-8-256gb-laser-black
PHP_SELF /index.php/artikal/mobilni-telefon-poco-x4-pro-5g-8-256gb-laser-black
REQUEST_TIME_FLOAT 1711667226.494
REQUEST_TIME 1711667226
empty
0. Whoops\Handler\PrettyPageHandler