Illuminate \ Database \ QueryException (1049)
SQLSTATE[HY000] [1049] Unknown database 'volar' (SQL: select * from information_schema.tables where table_schema = volar and table_name = services and table_type = 'BASE TABLE')
Previous exceptions
  • SQLSTATE[HY000] [1049] Unknown database 'volar' (1049)
  • SQLSTATE[HY000] [1049] Unknown database 'volar' (1049)
Illuminate\Database\QueryException thrown with message "SQLSTATE[HY000] [1049] Unknown database 'volar' (SQL: select * from information_schema.tables where table_schema = volar and table_name = services and table_type = 'BASE TABLE')" Stacktrace: #51 Illuminate\Database\QueryException in /var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:712 #50 Illuminate\Foundation\Application:Illuminate\Foundation\{closure} in [internal]:0 #49 Doctrine\DBAL\Driver\PDO\Exception in /var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18 #48 Doctrine\DBAL\Driver\PDO\Exception:new in /var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:44 #47 Illuminate\Foundation\Application:Illuminate\Foundation\{closure} in [internal]:0 #46 PDOException in /var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40 #45 PDO:__construct in /var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40 #44 Doctrine\DBAL\Driver\PDOConnection:__construct in /var/www/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:67 #43 Illuminate\Database\Connectors\Connector:createPdoConnection in /var/www/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:45 #42 Illuminate\Database\Connectors\Connector:createConnection in /var/www/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24 #41 Illuminate\Database\Connectors\MySqlConnector:connect in /var/www/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:184 #40 Illuminate\Database\Connectors\ConnectionFactory:Illuminate\Database\Connectors\{closure} in /var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1064 #39 call_user_func in /var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1064 #38 Illuminate\Database\Connection:getPdo in /var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1100 #37 Illuminate\Database\Connection:getReadPdo in /var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:442 #36 Illuminate\Database\Connection:getPdoForSelect in /var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:368 #35 Illuminate\Database\Connection:Illuminate\Database\{closure} in /var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:705 #34 Illuminate\Database\Connection:runQueryCallback in /var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:672 #33 Illuminate\Database\Connection:run in /var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:359 #32 Illuminate\Database\Connection:select in /var/www/vendor/laravel/framework/src/Illuminate/Database/Schema/MySqlBuilder.php:43 #31 Illuminate\Database\Schema\MySqlBuilder:hasTable in /var/www/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261 #30 Illuminate\Support\Facades\Facade:__callStatic in /var/www/app/Helper.php:4903 #29 App\Helper:getAccessType in /var/www/routes/web.php:86 #28 require in /var/www/vendor/laravel/framework/src/Illuminate/Routing/RouteFileRegistrar.php:35 #27 Illuminate\Routing\RouteFileRegistrar:register in /var/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php:425 #26 Illuminate\Routing\Router:loadRoutes in /var/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php:382 #25 Illuminate\Routing\Router:group in /var/www/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php:163 #24 Illuminate\Routing\RouteRegistrar:group in /var/www/app/Providers/RouteServiceProvider.php:56 #23 App\Providers\RouteServiceProvider:mapWebRoutes in /var/www/app/Providers/RouteServiceProvider.php:40 #22 App\Providers\RouteServiceProvider:map in /var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36 #21 Illuminate\Container\BoundMethod:Illuminate\Container\{closure} in /var/www/vendor/laravel/framework/src/Illuminate/Container/Util.php:40 #20 Illuminate\Container\Util:unwrapIfClosure in /var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93 #19 Illuminate\Container\BoundMethod:callBoundMethod in /var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:35 #18 Illuminate\Container\BoundMethod:call in /var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php:653 #17 Illuminate\Container\Container:call in /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php:122 #16 Illuminate\Foundation\Support\Providers\RouteServiceProvider:loadRoutes in /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php:45 #15 Illuminate\Foundation\Support\Providers\RouteServiceProvider:Illuminate\Foundation\Support\Providers\{closure} in /var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36 #14 Illuminate\Container\BoundMethod:Illuminate\Container\{closure} in /var/www/vendor/laravel/framework/src/Illuminate/Container/Util.php:40 #13 Illuminate\Container\Util:unwrapIfClosure in /var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:81 #12 Illuminate\Container\BoundMethod:callBoundMethod in /var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:35 #11 Illuminate\Container\BoundMethod:call in /var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php:653 #10 Illuminate\Container\Container:call in /var/www/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:119 #9 Illuminate\Support\ServiceProvider:callBootedCallbacks in /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:927 #8 Illuminate\Foundation\Application:bootProvider in /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:905 #7 Illuminate\Foundation\Application:Illuminate\Foundation\{closure} in [internal]:0 #6 array_walk in /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:904 #5 Illuminate\Foundation\Application:boot in /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 #4 Illuminate\Foundation\Bootstrap\BootProviders:bootstrap in /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:237 #3 Illuminate\Foundation\Application:bootstrapWith in /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:153 #2 Illuminate\Foundation\Http\Kernel:bootstrap in /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:137 #1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:111 #0 Illuminate\Foundation\Http\Kernel:handle in /var/www/public/index.php:55
51
Illuminate\Database\QueryException
/vendor/laravel/framework/src/Illuminate/Database/Connection.php712
50
Illuminate\Foundation\Application Illuminate\Foundation\{closure}
[internal]0
49
Doctrine\DBAL\Driver\PDO\Exception
/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php18
48
Doctrine\DBAL\Driver\PDO\Exception new
/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php44
47
Illuminate\Foundation\Application Illuminate\Foundation\{closure}
[internal]0
46
PDOException
/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php40
45
PDO __construct
/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php40
44
Doctrine\DBAL\Driver\PDOConnection __construct
/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php67
43
Illuminate\Database\Connectors\Connector createPdoConnection
/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php45
42
Illuminate\Database\Connectors\Connector createConnection
/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php24
41
Illuminate\Database\Connectors\MySqlConnector connect
/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php184
40
Illuminate\Database\Connectors\ConnectionFactory Illuminate\Database\Connectors\{closure}
/vendor/laravel/framework/src/Illuminate/Database/Connection.php1064
39
call_user_func
/vendor/laravel/framework/src/Illuminate/Database/Connection.php1064
38
Illuminate\Database\Connection getPdo
/vendor/laravel/framework/src/Illuminate/Database/Connection.php1100
37
Illuminate\Database\Connection getReadPdo
/vendor/laravel/framework/src/Illuminate/Database/Connection.php442
36
Illuminate\Database\Connection getPdoForSelect
/vendor/laravel/framework/src/Illuminate/Database/Connection.php368
35
Illuminate\Database\Connection Illuminate\Database\{closure}
/vendor/laravel/framework/src/Illuminate/Database/Connection.php705
34
Illuminate\Database\Connection runQueryCallback
/vendor/laravel/framework/src/Illuminate/Database/Connection.php672
33
Illuminate\Database\Connection run
/vendor/laravel/framework/src/Illuminate/Database/Connection.php359
32
Illuminate\Database\Connection select
/vendor/laravel/framework/src/Illuminate/Database/Schema/MySqlBuilder.php43
31
Illuminate\Database\Schema\MySqlBuilder hasTable
/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php261
30
Illuminate\Support\Facades\Facade __callStatic
/app/Helper.php4903
29
App\Helper getAccessType
/routes/web.php86
28
require
/vendor/laravel/framework/src/Illuminate/Routing/RouteFileRegistrar.php35
27
Illuminate\Routing\RouteFileRegistrar register
/vendor/laravel/framework/src/Illuminate/Routing/Router.php425
26
Illuminate\Routing\Router loadRoutes
/vendor/laravel/framework/src/Illuminate/Routing/Router.php382
25
Illuminate\Routing\Router group
/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php163
24
Illuminate\Routing\RouteRegistrar group
/app/Providers/RouteServiceProvider.php56
23
App\Providers\RouteServiceProvider mapWebRoutes
/app/Providers/RouteServiceProvider.php40
22
App\Providers\RouteServiceProvider map
/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php36
21
Illuminate\Container\BoundMethod Illuminate\Container\{closure}
/vendor/laravel/framework/src/Illuminate/Container/Util.php40
20
Illuminate\Container\Util unwrapIfClosure
/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php93
19
Illuminate\Container\BoundMethod callBoundMethod
/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php35
18
Illuminate\Container\BoundMethod call
/vendor/laravel/framework/src/Illuminate/Container/Container.php653
17
Illuminate\Container\Container call
/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php122
16
Illuminate\Foundation\Support\Providers\RouteServiceProvider loadRoutes
/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php45
15
Illuminate\Foundation\Support\Providers\RouteServiceProvider Illuminate\Foundation\Support\Providers\{closure}
/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php36
14
Illuminate\Container\BoundMethod Illuminate\Container\{closure}
/vendor/laravel/framework/src/Illuminate/Container/Util.php40
13
Illuminate\Container\Util unwrapIfClosure
/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php81
12
Illuminate\Container\BoundMethod callBoundMethod
/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php35
11
Illuminate\Container\BoundMethod call
/vendor/laravel/framework/src/Illuminate/Container/Container.php653
10
Illuminate\Container\Container call
/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php119
9
Illuminate\Support\ServiceProvider callBootedCallbacks
/vendor/laravel/framework/src/Illuminate/Foundation/Application.php927
8
Illuminate\Foundation\Application bootProvider
/vendor/laravel/framework/src/Illuminate/Foundation/Application.php905
7
Illuminate\Foundation\Application Illuminate\Foundation\{closure}
[internal]0
6
array_walk
/vendor/laravel/framework/src/Illuminate/Foundation/Application.php904
5
Illuminate\Foundation\Application boot
/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php17
4
Illuminate\Foundation\Bootstrap\BootProviders bootstrap
/vendor/laravel/framework/src/Illuminate/Foundation/Application.php237
3
Illuminate\Foundation\Application bootstrapWith
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php153
2
Illuminate\Foundation\Http\Kernel bootstrap
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php137
1
Illuminate\Foundation\Http\Kernel sendRequestThroughRouter
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php111
0
Illuminate\Foundation\Http\Kernel handle
/public/index.php55
/var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php
     * @param  array  $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function runQueryCallback($query, $bindings, Closure $callback)
    {
        // To execute the statement, we'll simply call the callback, which will actually
        // run the SQL against the PDO connection. Then we can calculate the time it
        // took to execute and log the query SQL, bindings and time in our memory.
        try {
            return $callback($query, $bindings);
        }
 
        // If an exception occurs when attempting to run a query, we'll format the error
        // message to include the bindings with SQL, which will make this exception a
        // lot more helpful to the developer instead of just the database's errors.
        catch (Exception $e) {
            throw new QueryException(
                $query, $this->prepareBindings($bindings), $e
            );
        }
    }
 
    /**
     * Log a query in the connection's query log.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  float|null  $time
     * @return void
     */
    public function logQuery($query, $bindings, $time = null)
    {
        $this->event(new QueryExecuted($query, $bindings, $time, $this));
 
        if ($this->loggingQueries) {
            $this->queryLog[] = compact('query', 'bindings', 'time');
        }
Arguments
  1. "SQLSTATE[HY000] [1049] Unknown database 'volar' (SQL: select * from information_schema.tables where table_schema = volar and table_name = services and table_type = 'BASE TABLE')"
    
[internal]
/var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php
<?php
 
declare(strict_types=1);
 
namespace Doctrine\DBAL\Driver\PDO;
 
use Doctrine\DBAL\Driver\PDOException;
 
/**
 * @internal
 *
 * @psalm-immutable
 */
final class Exception extends PDOException
{
    public static function new(\PDOException $exception): self
    {
        return new self($exception);
    }
}
 
Arguments
  1. "SQLSTATE[HY000] [1049] Unknown database 'volar'"
    
Exception message: SQLSTATE[HY000] [1049] Unknown database 'volar'
/var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
    use PDOQueryImplementation;
 
    /**
     * @internal The connection can be only instantiated by its driver.
     *
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (PDOException $exception) {
            throw Exception::new($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    #[ReturnTypeWillChange]
    public function exec($sql)
    {
        try {
            $result = parent::exec($sql);
            assert($result !== false);
 
            return $result;
        } catch (PDOException $exception) {
            throw Exception::new($exception);
        }
    }
 
    /**
[internal]
/var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
 * @deprecated Use {@link Connection} instead
 */
class PDOConnection extends PDO implements ConnectionInterface, ServerInfoAwareConnection
{
    use PDOQueryImplementation;
 
    /**
     * @internal The connection can be only instantiated by its driver.
     *
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (PDOException $exception) {
            throw Exception::new($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    #[ReturnTypeWillChange]
    public function exec($sql)
    {
        try {
            $result = parent::exec($sql);
            assert($result !== false);
 
            return $result;
        } catch (PDOException $exception) {
            throw Exception::new($exception);
Arguments
  1. "SQLSTATE[HY000] [1049] Unknown database 'volar'"
    
Exception message: SQLSTATE[HY000] [1049] Unknown database 'volar'
/var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
 * @deprecated Use {@link Connection} instead
 */
class PDOConnection extends PDO implements ConnectionInterface, ServerInfoAwareConnection
{
    use PDOQueryImplementation;
 
    /**
     * @internal The connection can be only instantiated by its driver.
     *
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (PDOException $exception) {
            throw Exception::new($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    #[ReturnTypeWillChange]
    public function exec($sql)
    {
        try {
            $result = parent::exec($sql);
            assert($result !== false);
 
            return $result;
        } catch (PDOException $exception) {
            throw Exception::new($exception);
/var/www/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
        } catch (Exception $e) {
            return $this->tryAgainIfCausedByLostConnection(
                $e, $dsn, $username, $password, $options
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
            return new PDOConnection($dsn, $username, $password, $options);
        }
 
        return new PDO($dsn, $username, $password, $options);
    }
 
    /**
     * Determine if the connection is persistent.
     *
     * @param  array  $options
     * @return bool
     */
    protected function isPersistentConnection($options)
    {
        return isset($options[PDO::ATTR_PERSISTENT]) &&
               $options[PDO::ATTR_PERSISTENT];
    }
 
    /**
     * Handle an exception that occurred during connect execution.
     *
/var/www/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
    ];
 
    /**
     * Create a new PDO connection.
     *
     * @param  string  $dsn
     * @param  array  $config
     * @param  array  $options
     * @return \PDO
     *
     * @throws \Exception
     */
    public function createConnection($dsn, array $config, array $options)
    {
        [$username, $password] = [
            $config['username'] ?? null, $config['password'] ?? null,
        ];
 
        try {
            return $this->createPdoConnection(
                $dsn, $username, $password, $options
            );
        } catch (Exception $e) {
            return $this->tryAgainIfCausedByLostConnection(
                $e, $dsn, $username, $password, $options
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
/var/www/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php
use PDO;
 
class MySqlConnector extends Connector implements ConnectorInterface
{
    /**
     * Establish a database connection.
     *
     * @param  array  $config
     * @return \PDO
     */
    public function connect(array $config)
    {
        $dsn = $this->getDsn($config);
 
        $options = $this->getOptions($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.
        $connection = $this->createConnection($dsn, $config, $options);
 
        if (! empty($config['database'])) {
            $connection->exec("use `{$config['database']}`;");
        }
 
        $this->configureIsolationLevel($connection, $config);
 
        $this->configureEncoding($connection, $config);
 
        // Next, we will check to see if a timezone has been specified in this config
        // and if it has we will issue a statement to modify the timezone with the
        // database. Setting this DB timezone is an optional configuration item.
        $this->configureTimezone($connection, $config);
 
        $this->setModes($connection, $config);
 
        return $connection;
    }
 
    /**
/var/www/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php
                            ? $this->createPdoResolverWithHosts($config)
                            : $this->createPdoResolverWithoutHosts($config);
    }
 
    /**
     * Create a new Closure that resolves to a PDO instance with a specific host or an array of hosts.
     *
     * @param  array  $config
     * @return \Closure
     *
     * @throws \PDOException
     */
    protected function createPdoResolverWithHosts(array $config)
    {
        return function () use ($config) {
            foreach (Arr::shuffle($hosts = $this->parseHosts($config)) as $key => $host) {
                $config['host'] = $host;
 
                try {
                    return $this->createConnector($config)->connect($config);
                } catch (PDOException $e) {
                    continue;
                }
            }
 
            throw $e;
        };
    }
 
    /**
     * Parse the hosts configuration item into an array.
     *
     * @param  array  $config
     * @return array
     *
     * @throws \InvalidArgumentException
     */
    protected function parseHosts(array $config)
    {
        $hosts = Arr::wrap($config['host']);
/var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php
                'Registering a custom Doctrine type requires Doctrine DBAL (doctrine/dbal).'
            );
        }
 
        if (! Type::hasType($name)) {
            Type::addType($name, $class);
        }
 
        $this->doctrineTypeMappings[$name] = $type;
    }
 
    /**
     * Get the current PDO connection.
     *
     * @return \PDO
     */
    public function getPdo()
    {
        if ($this->pdo instanceof Closure) {
            return $this->pdo = call_user_func($this->pdo);
        }
 
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection parameter without executing any reconnect logic.
     *
     * @return \PDO|\Closure|null
     */
    public function getRawPdo()
    {
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
/var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php
                'Registering a custom Doctrine type requires Doctrine DBAL (doctrine/dbal).'
            );
        }
 
        if (! Type::hasType($name)) {
            Type::addType($name, $class);
        }
 
        $this->doctrineTypeMappings[$name] = $type;
    }
 
    /**
     * Get the current PDO connection.
     *
     * @return \PDO
     */
    public function getPdo()
    {
        if ($this->pdo instanceof Closure) {
            return $this->pdo = call_user_func($this->pdo);
        }
 
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection parameter without executing any reconnect logic.
     *
     * @return \PDO|\Closure|null
     */
    public function getRawPdo()
    {
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
/var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->readOnWriteConnection ||
            ($this->recordsModified && $this->getConfig('sticky'))) {
            return $this->getPdo();
        }
 
        if ($this->readPdo instanceof Closure) {
            return $this->readPdo = call_user_func($this->readPdo);
        }
 
        return $this->readPdo ?: $this->getPdo();
    }
 
    /**
     * Get the current read PDO connection parameter without executing any reconnect logic.
     *
     * @return \PDO|\Closure|null
     */
    public function getRawReadPdo()
    {
        return $this->readPdo;
    }
 
    /**
     * Set the PDO connection.
     *
     * @param  \PDO|\Closure|null  $pdo
     * @return $this
     */
    public function setPdo($pdo)
    {
/var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php
    protected function prepared(PDOStatement $statement)
    {
        $statement->setFetchMode($this->fetchMode);
 
        $this->event(new StatementPrepared(
            $this, $statement
        ));
 
        return $statement;
    }
 
    /**
     * Get the PDO connection to use for a select query.
     *
     * @param  bool  $useReadPdo
     * @return \PDO
     */
    protected function getPdoForSelect($useReadPdo = true)
    {
        return $useReadPdo ? $this->getReadPdo() : $this->getPdo();
    }
 
    /**
     * Run an insert statement against the database.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @return bool
     */
    public function insert($query, $bindings = [])
    {
        return $this->statement($query, $bindings);
    }
 
    /**
     * Run an update statement against the database.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @return int
/var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php
    /**
     * Run a select statement against the database.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return array
     */
    public function select($query, $bindings = [], $useReadPdo = true)
    {
        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // For select statements, we'll simply execute the query and return an array
            // of the database result set. Each element in the array will be a single
            // row from the database table, and will either be an array or objects.
            $statement = $this->prepared(
                $this->getPdoForSelect($useReadPdo)->prepare($query)
            );
 
            $this->bindValues($statement, $this->prepareBindings($bindings));
 
            $statement->execute();
 
            return $statement->fetchAll();
        });
    }
 
    /**
     * Run a select statement against the database and returns a generator.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return \Generator
     */
    public function cursor($query, $bindings = [], $useReadPdo = true)
    {
/var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php
        return $result;
    }
 
    /**
     * Run a SQL statement.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function runQueryCallback($query, $bindings, Closure $callback)
    {
        // To execute the statement, we'll simply call the callback, which will actually
        // run the SQL against the PDO connection. Then we can calculate the time it
        // took to execute and log the query SQL, bindings and time in our memory.
        try {
            return $callback($query, $bindings);
        }
 
        // If an exception occurs when attempting to run a query, we'll format the error
        // message to include the bindings with SQL, which will make this exception a
        // lot more helpful to the developer instead of just the database's errors.
        catch (Exception $e) {
            throw new QueryException(
                $query, $this->prepareBindings($bindings), $e
            );
        }
    }
 
    /**
     * Log a query in the connection's query log.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  float|null  $time
     * @return void
     */
/var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function run($query, $bindings, Closure $callback)
    {
        foreach ($this->beforeExecutingCallbacks as $beforeExecutingCallback) {
            $beforeExecutingCallback($query, $bindings, $this);
        }
 
        $this->reconnectIfMissingConnection();
 
        $start = microtime(true);
 
        // Here we will run this query. If an exception occurs we'll determine if it was
        // caused by a connection that has been lost. If that is the cause, we'll try
        // to re-establish connection and re-run the query with a fresh connection.
        try {
            $result = $this->runQueryCallback($query, $bindings, $callback);
        } catch (QueryException $e) {
            $result = $this->handleQueryException(
                $e, $query, $bindings, $callback
            );
        }
 
        // Once we have run the query we will calculate the time that it took to run and
        // then log the query, bindings, and execution time so we will report them on
        // the event that the developer needs them. We'll log time in milliseconds.
        $this->logQuery(
            $query, $bindings, $this->getElapsedTime($start)
        );
 
        return $result;
    }
 
    /**
     * Run a SQL statement.
     *
     * @param  string  $query
/var/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php
     * @param  string  $query
     * @param  array  $bindings
     * @return array
     */
    public function selectFromWriteConnection($query, $bindings = [])
    {
        return $this->select($query, $bindings, false);
    }
 
    /**
     * Run a select statement against the database.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return array
     */
    public function select($query, $bindings = [], $useReadPdo = true)
    {
        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // For select statements, we'll simply execute the query and return an array
            // of the database result set. Each element in the array will be a single
            // row from the database table, and will either be an array or objects.
            $statement = $this->prepared(
                $this->getPdoForSelect($useReadPdo)->prepare($query)
            );
 
            $this->bindValues($statement, $this->prepareBindings($bindings));
 
            $statement->execute();
 
            return $statement->fetchAll();
        });
    }
 
    /**
/var/www/vendor/laravel/framework/src/Illuminate/Database/Schema/MySqlBuilder.php
     * @return bool
     */
    public function dropDatabaseIfExists($name)
    {
        return $this->connection->statement(
            $this->grammar->compileDropDatabaseIfExists($name)
        );
    }
 
    /**
     * Determine if the given table exists.
     *
     * @param  string  $table
     * @return bool
     */
    public function hasTable($table)
    {
        $table = $this->connection->getTablePrefix().$table;
 
        return count($this->connection->select(
            $this->grammar->compileTableExists(), [$this->connection->getDatabaseName(), $table]
        )) > 0;
    }
 
    /**
     * Get the column listing for a given table.
     *
     * @param  string  $table
     * @return array
     */
    public function getColumnListing($table)
    {
        $table = $this->connection->getTablePrefix().$table;
 
        $results = $this->connection->select(
            $this->grammar->compileColumnListing(), [$this->connection->getDatabaseName(), $table]
        );
 
        return $this->connection->getPostProcessor()->processColumnListing($results);
    }
/var/www/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php
    }
 
    /**
     * Handle dynamic, static calls to the object.
     *
     * @param  string  $method
     * @param  array  $args
     * @return mixed
     *
     * @throws \RuntimeException
     */
    public static function __callStatic($method, $args)
    {
        $instance = static::getFacadeRoot();
 
        if (! $instance) {
            throw new RuntimeException('A facade root has not been set.');
        }
 
        return $instance->$method(...$args);
    }
}
 
/var/www/app/Helper.php
     *
     * @param int $order_id order_id
     *
     * @access public
     *
     * @return string
     */
    public static function getOrderPayout($order_id)
    {
        return  Payout::where('order_id', $order_id)->get();
    }
 
    /**
     * Get access type.
     *
     * @return accesstype
     */
    public static function getAccessType()
    {
        if (Schema::hasTable('services') && Schema::hasTable('service_user')) {
            $access_type = SiteManagement::where('meta_key', 'access_type')->select('meta_value')->pluck('meta_value')->first();
            if (!empty($access_type)) {
                return $access_type;
            } else {
                return 'jobs';
            }
        } else {
            return 'jobs';
        }
    }
 
    /**
     * Get home banner
     *
     * @param string $type type
     * @param string $size size
     *
     * @access public
     *
     * @return string
/var/www/routes/web.php
Route::get('categories', 'CategoryController@categoriesList')->name('categoriesList');
Route::get('categories/{slug}', 'CategoryController@showCat')->name('showCategory');
Route::get('page/{slug}', 'PageController@show')->name('showPage');
Route::post('store/project-offer', 'UserController@storeProjectOffers');
Route::get('users', 'UserController@userListing')->name('userListing');
Route::post('/count/vol', 'UserController@countvol')->name('countvol');
Route::post('admin/reports', 'JobController@reports');
Route::post('/admin/users/update-laterWorksTime', 'UserController@updateLaterWorksTime');
Route::post('/register-after-otp', 'Auth\RegisterController@registerWithOtp');
 
 
Route::controller(\Auth\AuthOtpController::class)->group(function(){
    Route::get('otp/login', 'login')->name('otp.login');
    Route::post('otp/generate', 'generate')->name('otp.generate');
    Route::post('otp/verification', 'loginWithOtp');
    Route::post('otp/login', 'loginWithOtp')->name('otp.getlogin');
});
 
 
if (Helper::getAccessType() == 'both' || Helper::getAccessType() == 'jobs') {
    Route::get('jobs', 'JobController@listjobs')->name('jobs');
    Route::get('job/{slug}', 'JobController@show')->name('jobDetail');
}
 
if (Helper::getAccessType() == 'both' || Helper::getAccessType() == 'services') {
    Route::get('services', 'ServiceController@index')->name('services');
    Route::get('service/{slug}', 'ServiceController@show')->name('serviceDetail');
}
Route::get('user/password/reset/{verify_code}', 'PublicController@resetPasswordView')->name('getResetPassView');
Route::post('user/update/password', 'PublicController@resetUserPassword')->name('resetUserPassword');
// Authentication|Guest Routes
Route::post('register/login-register-user', 'PublicController@loginUser')->name('loginUser');
Route::post('register/verify-user-code', 'PublicController@verifyUserCode');
Route::post('register/form-step1-custom-errors', 'PublicController@RegisterStep1Validation');
Route::post('register/form-step2-custom-errors', 'PublicController@RegisterStep2Validation');
Route::post('register/single-form-custom-errors', 'PublicController@singleFormValidation');
Route::get('search-results', 'PublicController@getSearchResult')->name('searchResults');
Route::post('user/add-wishlist', 'UserController@addWishlist');
 
// Admin Routes
/var/www/vendor/laravel/framework/src/Illuminate/Routing/RouteFileRegistrar.php
     *
     * @param  \Illuminate\Routing\Router  $router
     * @return void
     */
    public function __construct(Router $router)
    {
        $this->router = $router;
    }
 
    /**
     * Require the given routes file.
     *
     * @param  string  $routes
     * @return void
     */
    public function register($routes)
    {
        $router = $this->router;
 
        require $routes;
    }
}
 
Arguments
  1. "/var/www/routes/web.php"
    
/var/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php
     * @param  bool  $prependExistingPrefix
     * @return array
     */
    public function mergeWithLastGroup($new, $prependExistingPrefix = true)
    {
        return RouteGroup::merge($new, end($this->groupStack), $prependExistingPrefix);
    }
 
    /**
     * Load the provided routes.
     *
     * @param  \Closure|string  $routes
     * @return void
     */
    protected function loadRoutes($routes)
    {
        if ($routes instanceof Closure) {
            $routes($this);
        } else {
            (new RouteFileRegistrar($this))->register($routes);
        }
    }
 
    /**
     * Get the prefix from the last group on the stack.
     *
     * @return string
     */
    public function getLastGroupPrefix()
    {
        if ($this->hasGroupStack()) {
            $last = end($this->groupStack);
 
            return $last['prefix'] ?? '';
        }
 
        return '';
    }
 
    /**
/var/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php
        return $this->resource($name, $controller, array_merge([
            'only' => $only,
        ], $options));
    }
 
    /**
     * Create a route group with shared attributes.
     *
     * @param  array  $attributes
     * @param  \Closure|string  $routes
     * @return void
     */
    public function group(array $attributes, $routes)
    {
        $this->updateGroupStack($attributes);
 
        // Once we have updated the group stack, we'll load the provided routes and
        // merge in the group's attributes when the routes are created. After we
        // have created the routes, we will pop the attributes off the stack.
        $this->loadRoutes($routes);
 
        array_pop($this->groupStack);
    }
 
    /**
     * Update the group stack with the given attributes.
     *
     * @param  array  $attributes
     * @return void
     */
    protected function updateGroupStack(array $attributes)
    {
        if ($this->hasGroupStack()) {
            $attributes = $this->mergeWithLastGroup($attributes);
        }
 
        $this->groupStack[] = $attributes;
    }
 
    /**
/var/www/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php
     *
     * @param  string  $name
     * @param  string  $controller
     * @param  array  $options
     * @return \Illuminate\Routing\PendingResourceRegistration
     */
    public function apiResource($name, $controller, array $options = [])
    {
        return $this->router->apiResource($name, $controller, $this->attributes + $options);
    }
 
    /**
     * Create a route group with shared attributes.
     *
     * @param  \Closure|string  $callback
     * @return void
     */
    public function group($callback)
    {
        $this->router->group($this->attributes, $callback);
    }
 
    /**
     * Register a new route with the given verbs.
     *
     * @param  array|string  $methods
     * @param  string  $uri
     * @param  \Closure|array|string|null  $action
     * @return \Illuminate\Routing\Route
     */
    public function match($methods, $uri, $action = null)
    {
        return $this->router->match($methods, $uri, $this->compileAction($action));
    }
 
    /**
     * Register a new route with the router.
     *
     * @param  string  $method
     * @param  string  $uri
/var/www/app/Providers/RouteServiceProvider.php
    {
        $this->mapApiRoutes();
 
        $this->mapWebRoutes();
 
        //
    }
 
    /**
     * Define the "web" routes for the application.
     *
     * These routes all receive session state, CSRF protection, etc.
     *
     * @return void
     */
    protected function mapWebRoutes()
    {
        Route::middleware('web')
             ->namespace($this->namespace)
             ->group(base_path('routes/web.php'));
    }
 
    /**
     * Define the "api" routes for the application.
     *
     * These routes are typically stateless.
     *
     * @return void
     */
    protected function mapApiRoutes()
    {
        Route::prefix('api')
             ->middleware('api')
             ->namespace($this->namespace)
             ->group(base_path('routes/api.php'));
    }
}
 
/var/www/app/Providers/RouteServiceProvider.php
     *
     * @return void
     */
    public function boot()
    {
        //
 
        parent::boot();
    }
 
    /**
     * Define the routes for the application.
     *
     * @return void
     */
    public function map()
    {
        $this->mapApiRoutes();
 
        $this->mapWebRoutes();
 
        //
    }
 
    /**
     * Define the "web" routes for the application.
     *
     * These routes all receive session state, CSRF protection, etc.
     *
     * @return void
     */
    protected function mapWebRoutes()
    {
        Route::middleware('web')
             ->namespace($this->namespace)
             ->group(base_path('routes/web.php'));
    }
 
    /**
     * Define the "api" routes for the application.
/var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \ReflectionException
     * @throws \InvalidArgumentException
     */
    public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
    {
        if (is_string($callback) && ! $defaultMethod && method_exists($callback, '__invoke')) {
            $defaultMethod = '__invoke';
        }
 
        if (static::isCallableWithAtSign($callback) || $defaultMethod) {
            return static::callClass($container, $callback, $parameters, $defaultMethod);
        }
 
        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
            return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
        });
    }
 
    /**
     * Call a string reference to a class using Class@method syntax.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  string  $target
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \InvalidArgumentException
     */
    protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
    {
        $segments = explode('@', $target);
 
        // We will assume an @ sign is used to delimit the class name from the method
        // name. We will split on this @ sign and then build a callable array that
/var/www/vendor/laravel/framework/src/Illuminate/Container/Util.php
    public static function arrayWrap($value)
    {
        if (is_null($value)) {
            return [];
        }
 
        return is_array($value) ? $value : [$value];
    }
 
    /**
     * Return the default value of the given value.
     *
     * From global value() helper in Illuminate\Support.
     *
     * @param  mixed  $value
     * @return mixed
     */
    public static function unwrapIfClosure($value)
    {
        return $value instanceof Closure ? $value() : $value;
    }
 
    /**
     * Get the class name of the given parameter's type, if possible.
     *
     * From Reflector::getParameterClassName() in Illuminate\Support.
     *
     * @param  \ReflectionParameter  $parameter
     * @return string|null
     */
    public static function getParameterClassName($parameter)
    {
        $type = $parameter->getType();
 
        if (! $type instanceof ReflectionNamedType || $type->isBuiltin()) {
            return null;
        }
 
        $name = $type->getName();
 
/var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
     * @param  callable  $callback
     * @param  mixed  $default
     * @return mixed
     */
    protected static function callBoundMethod($container, $callback, $default)
    {
        if (! is_array($callback)) {
            return Util::unwrapIfClosure($default);
        }
 
        // Here we need to turn the array callable into a Class@method string we can use to
        // examine the container and see if there are any method bindings for this given
        // method. If there are, we can call this method binding callback immediately.
        $method = static::normalizeMethod($callback);
 
        if ($container->hasMethodBinding($method)) {
            return $container->callMethodBinding($method, $callback[0]);
        }
 
        return Util::unwrapIfClosure($default);
    }
 
    /**
     * Normalize the given callback into a Class@method string.
     *
     * @param  callable  $callback
     * @return string
     */
    protected static function normalizeMethod($callback)
    {
        $class = is_string($callback[0]) ? $callback[0] : get_class($callback[0]);
 
        return "{$class}@{$callback[1]}";
    }
 
    /**
     * Get all dependencies for a given method.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  callable|string  $callback
/var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
     * @param  \Illuminate\Container\Container  $container
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \ReflectionException
     * @throws \InvalidArgumentException
     */
    public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
    {
        if (is_string($callback) && ! $defaultMethod && method_exists($callback, '__invoke')) {
            $defaultMethod = '__invoke';
        }
 
        if (static::isCallableWithAtSign($callback) || $defaultMethod) {
            return static::callClass($container, $callback, $parameters, $defaultMethod);
        }
 
        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
            return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
        });
    }
 
    /**
     * Call a string reference to a class using Class@method syntax.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  string  $target
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \InvalidArgumentException
     */
    protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
    {
        $segments = explode('@', $target);
 
        // We will assume an @ sign is used to delimit the class name from the method
/var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php
    public function wrap(Closure $callback, array $parameters = [])
    {
        return function () use ($callback, $parameters) {
            return $this->call($callback, $parameters);
        };
    }
 
    /**
     * Call the given Closure / class@method and inject its dependencies.
     *
     * @param  callable|string  $callback
     * @param  array<string, mixed>  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \InvalidArgumentException
     */
    public function call($callback, array $parameters = [], $defaultMethod = null)
    {
        return BoundMethod::call($this, $callback, $parameters, $defaultMethod);
    }
 
    /**
     * Get a closure to resolve the given type from the container.
     *
     * @param  string  $abstract
     * @return \Closure
     */
    public function factory($abstract)
    {
        return function () use ($abstract) {
            return $this->make($abstract);
        };
    }
 
    /**
     * An alias function name for make().
     *
     * @param  string|callable  $abstract
     * @param  array  $parameters
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php
     * @return void
     */
    protected function loadCachedRoutes()
    {
        $this->app->booted(function () {
            require $this->app->getCachedRoutesPath();
        });
    }
 
    /**
     * Load the application routes.
     *
     * @return void
     */
    protected function loadRoutes()
    {
        if (! is_null($this->loadRoutesUsing)) {
            $this->app->call($this->loadRoutesUsing);
        } elseif (method_exists($this, 'map')) {
            $this->app->call([$this, 'map']);
        }
    }
 
    /**
     * Pass dynamic methods onto the router instance.
     *
     * @param  string  $method
     * @param  array  $parameters
     * @return mixed
     */
    public function __call($method, $parameters)
    {
        return $this->forwardCallTo(
            $this->app->make(Router::class), $method, $parameters
        );
    }
}
 
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php
     * The callback that should be used to load the application's routes.
     *
     * @var \Closure|null
     */
    protected $loadRoutesUsing;
 
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        $this->booted(function () {
            $this->setRootControllerNamespace();
 
            if ($this->routesAreCached()) {
                $this->loadCachedRoutes();
            } else {
                $this->loadRoutes();
 
                $this->app->booted(function () {
                    $this->app['router']->getRoutes()->refreshNameLookups();
                    $this->app['router']->getRoutes()->refreshActionLookups();
                });
            }
        });
    }
 
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }
 
    /**
/var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \ReflectionException
     * @throws \InvalidArgumentException
     */
    public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
    {
        if (is_string($callback) && ! $defaultMethod && method_exists($callback, '__invoke')) {
            $defaultMethod = '__invoke';
        }
 
        if (static::isCallableWithAtSign($callback) || $defaultMethod) {
            return static::callClass($container, $callback, $parameters, $defaultMethod);
        }
 
        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
            return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
        });
    }
 
    /**
     * Call a string reference to a class using Class@method syntax.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  string  $target
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \InvalidArgumentException
     */
    protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
    {
        $segments = explode('@', $target);
 
        // We will assume an @ sign is used to delimit the class name from the method
        // name. We will split on this @ sign and then build a callable array that
/var/www/vendor/laravel/framework/src/Illuminate/Container/Util.php
    public static function arrayWrap($value)
    {
        if (is_null($value)) {
            return [];
        }
 
        return is_array($value) ? $value : [$value];
    }
 
    /**
     * Return the default value of the given value.
     *
     * From global value() helper in Illuminate\Support.
     *
     * @param  mixed  $value
     * @return mixed
     */
    public static function unwrapIfClosure($value)
    {
        return $value instanceof Closure ? $value() : $value;
    }
 
    /**
     * Get the class name of the given parameter's type, if possible.
     *
     * From Reflector::getParameterClassName() in Illuminate\Support.
     *
     * @param  \ReflectionParameter  $parameter
     * @return string|null
     */
    public static function getParameterClassName($parameter)
    {
        $type = $parameter->getType();
 
        if (! $type instanceof ReflectionNamedType || $type->isBuiltin()) {
            return null;
        }
 
        $name = $type->getName();
 
/var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
            throw new InvalidArgumentException('Method not provided.');
        }
 
        return static::call(
            $container, [$container->make($segments[0]), $method], $parameters
        );
    }
 
    /**
     * Call a method that has been bound to the container.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  callable  $callback
     * @param  mixed  $default
     * @return mixed
     */
    protected static function callBoundMethod($container, $callback, $default)
    {
        if (! is_array($callback)) {
            return Util::unwrapIfClosure($default);
        }
 
        // Here we need to turn the array callable into a Class@method string we can use to
        // examine the container and see if there are any method bindings for this given
        // method. If there are, we can call this method binding callback immediately.
        $method = static::normalizeMethod($callback);
 
        if ($container->hasMethodBinding($method)) {
            return $container->callMethodBinding($method, $callback[0]);
        }
 
        return Util::unwrapIfClosure($default);
    }
 
    /**
     * Normalize the given callback into a Class@method string.
     *
     * @param  callable  $callback
     * @return string
     */
/var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
     * @param  \Illuminate\Container\Container  $container
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \ReflectionException
     * @throws \InvalidArgumentException
     */
    public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
    {
        if (is_string($callback) && ! $defaultMethod && method_exists($callback, '__invoke')) {
            $defaultMethod = '__invoke';
        }
 
        if (static::isCallableWithAtSign($callback) || $defaultMethod) {
            return static::callClass($container, $callback, $parameters, $defaultMethod);
        }
 
        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
            return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
        });
    }
 
    /**
     * Call a string reference to a class using Class@method syntax.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  string  $target
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \InvalidArgumentException
     */
    protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
    {
        $segments = explode('@', $target);
 
        // We will assume an @ sign is used to delimit the class name from the method
/var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php
    public function wrap(Closure $callback, array $parameters = [])
    {
        return function () use ($callback, $parameters) {
            return $this->call($callback, $parameters);
        };
    }
 
    /**
     * Call the given Closure / class@method and inject its dependencies.
     *
     * @param  callable|string  $callback
     * @param  array<string, mixed>  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \InvalidArgumentException
     */
    public function call($callback, array $parameters = [], $defaultMethod = null)
    {
        return BoundMethod::call($this, $callback, $parameters, $defaultMethod);
    }
 
    /**
     * Get a closure to resolve the given type from the container.
     *
     * @param  string  $abstract
     * @return \Closure
     */
    public function factory($abstract)
    {
        return function () use ($abstract) {
            return $this->make($abstract);
        };
    }
 
    /**
     * An alias function name for make().
     *
     * @param  string|callable  $abstract
     * @param  array  $parameters
/var/www/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php
        $index = 0;
 
        while ($index < count($this->bootingCallbacks)) {
            $this->app->call($this->bootingCallbacks[$index]);
 
            $index++;
        }
    }
 
    /**
     * Call the registered booted callbacks.
     *
     * @return void
     */
    public function callBootedCallbacks()
    {
        $index = 0;
 
        while ($index < count($this->bootedCallbacks)) {
            $this->app->call($this->bootedCallbacks[$index]);
 
            $index++;
        }
    }
 
    /**
     * Merge the given configuration with the existing configuration.
     *
     * @param  string  $path
     * @param  string  $key
     * @return void
     */
    protected function mergeConfigFrom($path, $key)
    {
        if (! ($this->app instanceof CachesConfiguration && $this->app->configurationIsCached())) {
            $config = $this->app->make('config');
 
            $config->set($key, array_merge(
                require $path, $config->get($key, [])
            ));
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
        $this->booted = true;
 
        $this->fireAppCallbacks($this->bootedCallbacks);
    }
 
    /**
     * Boot the given service provider.
     *
     * @param  \Illuminate\Support\ServiceProvider  $provider
     * @return void
     */
    protected function bootProvider(ServiceProvider $provider)
    {
        $provider->callBootingCallbacks();
 
        if (method_exists($provider, 'boot')) {
            $this->call([$provider, 'boot']);
        }
 
        $provider->callBootedCallbacks();
    }
 
    /**
     * Register a new boot listener.
     *
     * @param  callable  $callback
     * @return void
     */
    public function booting($callback)
    {
        $this->bootingCallbacks[] = $callback;
    }
 
    /**
     * Register a new "booted" listener.
     *
     * @param  callable  $callback
     * @return void
     */
    public function booted($callback)
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
    }
 
    /**
     * Boot the application's service providers.
     *
     * @return void
     */
    public function boot()
    {
        if ($this->isBooted()) {
            return;
        }
 
        // 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);
 
        array_walk($this->serviceProviders, function ($p) {
            $this->bootProvider($p);
        });
 
        $this->booted = true;
 
        $this->fireAppCallbacks($this->bootedCallbacks);
    }
 
    /**
     * Boot the given service provider.
     *
     * @param  \Illuminate\Support\ServiceProvider  $provider
     * @return void
     */
    protected function bootProvider(ServiceProvider $provider)
    {
        $provider->callBootingCallbacks();
 
        if (method_exists($provider, 'boot')) {
            $this->call([$provider, 'boot']);
        }
[internal]
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
        return $this->booted;
    }
 
    /**
     * Boot the application's service providers.
     *
     * @return void
     */
    public function boot()
    {
        if ($this->isBooted()) {
            return;
        }
 
        // 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);
 
        array_walk($this->serviceProviders, function ($p) {
            $this->bootProvider($p);
        });
 
        $this->booted = true;
 
        $this->fireAppCallbacks($this->bootedCallbacks);
    }
 
    /**
     * Boot the given service provider.
     *
     * @param  \Illuminate\Support\ServiceProvider  $provider
     * @return void
     */
    protected function bootProvider(ServiceProvider $provider)
    {
        $provider->callBootingCallbacks();
 
        if (method_exists($provider, 'boot')) {
            $this->call([$provider, 'boot']);
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php
<?php
 
namespace Illuminate\Foundation\Bootstrap;
 
use Illuminate\Contracts\Foundation\Application;
 
class BootProviders
{
    /**
     * Bootstrap the given application.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @return void
     */
    public function bootstrap(Application $app)
    {
        $app->boot();
    }
}
 
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
    {
        $this->register(new EventServiceProvider($this));
        $this->register(new LogServiceProvider($this));
        $this->register(new RoutingServiceProvider($this));
    }
 
    /**
     * Run the given array of bootstrap classes.
     *
     * @param  string[]  $bootstrappers
     * @return void
     */
    public function bootstrapWith(array $bootstrappers)
    {
        $this->hasBeenBootstrapped = true;
 
        foreach ($bootstrappers as $bootstrapper) {
            $this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]);
 
            $this->make($bootstrapper)->bootstrap($this);
 
            $this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]);
        }
    }
 
    /**
     * Register a callback to run after loading the environment.
     *
     * @param  \Closure  $callback
     * @return void
     */
    public function afterLoadingEnvironment(Closure $callback)
    {
        $this->afterBootstrapping(
            LoadEnvironmentVariables::class, $callback
        );
    }
 
    /**
     * Register a callback to run before a bootstrapper.
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
 
        Facade::clearResolvedInstance('request');
 
        $this->bootstrap();
 
        return (new Pipeline($this->app))
                    ->send($request)
                    ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
                    ->then($this->dispatchToRouter());
    }
 
    /**
     * Bootstrap the application for HTTP requests.
     *
     * @return void
     */
    public function bootstrap()
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
 
    /**
     * Get the route dispatcher callback.
     *
     * @return \Closure
     */
    protected function dispatchToRouter()
    {
        return function ($request) {
            $this->app->instance('request', $request);
 
            return $this->router->dispatch($request);
        };
    }
 
    /**
     * Call the terminate method on any terminable middleware.
     *
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
        $this->app['events']->dispatch(
            new RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    protected function sendRequestThroughRouter($request)
    {
        $this->app->instance('request', $request);
 
        Facade::clearResolvedInstance('request');
 
        $this->bootstrap();
 
        return (new Pipeline($this->app))
                    ->send($request)
                    ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
                    ->then($this->dispatchToRouter());
    }
 
    /**
     * Bootstrap the application for HTTP requests.
     *
     * @return void
     */
    public function bootstrap()
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
 
    /**
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
    public function __construct(Application $app, Router $router)
    {
        $this->app = $app;
        $this->router = $router;
 
        $this->syncMiddlewareToRouter();
    }
 
    /**
     * Handle an incoming HTTP request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function handle($request)
    {
        try {
            $request->enableHttpMethodParameterOverride();
 
            $response = $this->sendRequestThroughRouter($request);
        } catch (Throwable $e) {
            $this->reportException($e);
 
            $response = $this->renderException($request, $e);
        }
 
        $this->app['events']->dispatch(
            new RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    protected function sendRequestThroughRouter($request)
/var/www/public/index.php
|
*/
 
$app = require_once __DIR__.'/../bootstrap/app.php';
 
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
 
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
 
$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);
 
$response->send();
 
$kernel->terminate($request, $response);
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
PHP_EXTRA_CONFIGURE_ARGS
"--enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi"
HOSTNAME
"b9d02d106556"
PHP_INI_DIR
"/usr/local/etc/php"
HOME
"/home/www"
PHP_LDFLAGS
"-Wl,-O1 -pie"
PHP_CFLAGS
"-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
PHP_CPPFLAGS
"-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PHPIZE_DEPS
"autoconf \t\tdpkg-dev \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkg-config \t\tre2c"
PWD
"/var/www"
USER
"www"
HTTP_CDN_LOOP
"arvancloud; count=1"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
HTTP_AR_SID
"6231"
HTTP_AR_REAL_COUNTRY
"US"
HTTP_AR_REAL_IP
"3.235.46.191"
HTTP_X_SID
"6231"
HTTP_X_COUNTRY_CODE
"US"
HTTP_X_REQUEST_ID
"48bc5abba1d80cc47a301da0d1a4de13"
HTTP_X_FORWARDED_PORT
"443"
HTTP_TRUE_CLIENT_IP
"3.235.46.191"
HTTP_CONNECTION
"close"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_FOR
"3.235.46.191, 185.215.232.175"
HTTP_X_FORWARDED_SSL
"on"
HTTP_X_REAL_IP
"185.215.232.175"
HTTP_HOST
"vol.mahak-charity.org"
PATH_INFO
""
SCRIPT_FILENAME
"/var/www/public/index.php"
REDIRECT_STATUS
"200"
SERVER_NAME
""
SERVER_PORT
"80"
SERVER_ADDR
"172.18.0.5"
REMOTE_PORT
"49056"
REMOTE_ADDR
"172.18.0.1"
SERVER_SOFTWARE
"nginx/1.21.1"
GATEWAY_INTERFACE
"CGI/1.1"
REQUEST_SCHEME
"http"
SERVER_PROTOCOL
"HTTP/1.1"
DOCUMENT_ROOT
"/var/www/public"
DOCUMENT_URI
"/index.php"
REQUEST_URI
"/register"
SCRIPT_NAME
"/index.php"
CONTENT_LENGTH
""
CONTENT_TYPE
""
REQUEST_METHOD
"GET"
QUERY_STRING
""
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711615720.5039
REQUEST_TIME
1711615720
APP_NAME
"Laravel"
APP_ENV
"local"
APP_KEY
"base64:WpXJixqxwjx2N5ABEwoUpFr5Afe0ga7QKlNBoIyiB6U="
APP_DEBUG
"true"
APP_URL
"http://localhost"
LOG_CHANNEL
"stack"
LOG_DEPRECATIONS_CHANNEL
"null"
LOG_LEVEL
"debug"
DB_CONNECTION
"mysql"
DB_HOST
"sample_mysql"
DB_PORT
"3306"
DB_DATABASE
"volar"
DB_USERNAME
"root"
DB_PASSWORD
"password"
completed_hour_limit_for_certificate
"90"
BROADCAST_DRIVER
"redis"
CACHE_DRIVER
"file"
FILESYSTEM_DRIVER
"local"
QUEUE_CONNECTION
"sync"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
MEMCACHED_HOST
"127.0.0.1"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"smtp-relay.sendinblue.com"
MAIL_PORT
"587"
MAIL_USERNAME
"majid_dark@yahoo.com"
MAIL_PASSWORD
"9zbSwTXDAvQWkj4J"
MAIL_ENCRYPTION
"tls"
MAIL_FROM_ADDRESS
"majid_dark@yahoo.com"
MAIL_FROM_NAME
"CTOEmail"
AWS_ACCESS_KEY_ID
""
AWS_SECRET_ACCESS_KEY
""
AWS_DEFAULT_REGION
"us-east-1"
AWS_BUCKET
""
AWS_USE_PATH_STYLE_ENDPOINT
"false"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
"mt1"
SMS_PANEL_URL
"http://ws.adpdigital.com/url/send"
SMS_USERNAME
"mahak"
SMS_PASSWORD
"mahak23540"
LOG_PERMISSION
"0777"
QUEUE_DRIVER
"redis"
NGINX_EXPOSED_PORT
"8060"
MYSQL_EXPOSED_PORT
"3307"
REDIS_EXPOSED_PORT
"6379"
Key Value
APP_NAME
"Laravel"
APP_ENV
"local"
APP_KEY
"base64:WpXJixqxwjx2N5ABEwoUpFr5Afe0ga7QKlNBoIyiB6U="
APP_DEBUG
"true"
APP_URL
"http://localhost"
LOG_CHANNEL
"stack"
LOG_DEPRECATIONS_CHANNEL
"null"
LOG_LEVEL
"debug"
DB_CONNECTION
"mysql"
DB_HOST
"sample_mysql"
DB_PORT
"3306"
DB_DATABASE
"volar"
DB_USERNAME
"root"
DB_PASSWORD
"password"
completed_hour_limit_for_certificate
"90"
BROADCAST_DRIVER
"redis"
CACHE_DRIVER
"file"
FILESYSTEM_DRIVER
"local"
QUEUE_CONNECTION
"sync"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
MEMCACHED_HOST
"127.0.0.1"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"smtp-relay.sendinblue.com"
MAIL_PORT
"587"
MAIL_USERNAME
"majid_dark@yahoo.com"
MAIL_PASSWORD
"9zbSwTXDAvQWkj4J"
MAIL_ENCRYPTION
"tls"
MAIL_FROM_ADDRESS
"majid_dark@yahoo.com"
MAIL_FROM_NAME
"CTOEmail"
AWS_ACCESS_KEY_ID
""
AWS_SECRET_ACCESS_KEY
""
AWS_DEFAULT_REGION
"us-east-1"
AWS_BUCKET
""
AWS_USE_PATH_STYLE_ENDPOINT
"false"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
"mt1"
SMS_PANEL_URL
"http://ws.adpdigital.com/url/send"
SMS_USERNAME
"mahak"
SMS_PASSWORD
"mahak23540"
LOG_PERMISSION
"0777"
QUEUE_DRIVER
"redis"
NGINX_EXPOSED_PORT
"8060"
MYSQL_EXPOSED_PORT
"3307"
REDIS_EXPOSED_PORT
"6379"
0. Whoops\Handler\PrettyPageHandler