/home/carsoug/public_html/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
"SQLSTATE[HY000] [2002] Connection refused"
/home/carsoug/public_html/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);
}
}
/**
Arguments
PDOException {#803
#message: "SQLSTATE[HY000] [2002] Connection refused"
#code: 2002
#file: "/home/carsoug/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php"
#line: 40
+errorInfo: array:3 [
0 => "HY000"
1 => 2002
2 => "Connection refused"
]
}
[internal]
Arguments
Pvtl\VoyagerPages\Providers\PagesServiceProvider {#150}
32
/home/carsoug/public_html/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
"SQLSTATE[HY000] [2002] Connection refused"
/home/carsoug/public_html/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
"mysql:host=127.0.0.1;port=3306;dbname=carsoug_live"
"carsoug_Newadmin"
""SP>YC\cqkYZ&7k3)d7/##f=&Z8]$+DA"
array:6 [
8 => 0
3 => 2
11 => 0
17 => false
20 => false
12 => false
]
/home/carsoug/public_html/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.
*
Arguments
"mysql:host=127.0.0.1;port=3306;dbname=carsoug_live"
"carsoug_Newadmin"
""SP>YC\cqkYZ&7k3)d7/##f=&Z8]$+DA"
array:6 [
8 => 0
3 => 2
11 => 0
17 => false
20 => false
12 => false
]
/home/carsoug/public_html/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)
{
if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
Arguments
"mysql:host=127.0.0.1;port=3306;dbname=carsoug_live"
"carsoug_Newadmin"
""SP>YC\cqkYZ&7k3)d7/##f=&Z8]$+DA"
array:6 [
8 => 0
3 => 2
11 => 0
17 => false
20 => false
12 => false
]
/home/carsoug/public_html/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->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;
}
/**
* Set the connection character set and collation.
*
Arguments
"mysql:host=127.0.0.1;port=3306;dbname=carsoug_live"
array:14 [
"driver" => "mysql"
"host" => "127.0.0.1"
"port" => "3306"
"database" => "carsoug_live"
"username" => "carsoug_Newadmin"
"password" => ""SP>YC\cqkYZ&7k3)d7/##f=&Z8]$+DA"
"unix_socket" => ""
"charset" => "utf8mb4"
"collation" => "utf8mb4_unicode_ci"
"prefix" => ""
"strict" => false
"engine" => null
"options" => array:1 [
12 => false
]
"name" => "mysql"
]
array:6 [
8 => 0
3 => 2
11 => 0
17 => false
20 => false
12 => false
]
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php
{
return array_key_exists('host', $config)
? $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
*/
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
*/
protected function parseHosts(array $config)
{
$hosts = Arr::wrap($config['host']);
if (empty($hosts)) {
Arguments
array:14 [
"driver" => "mysql"
"host" => "127.0.0.1"
"port" => "3306"
"database" => "carsoug_live"
"username" => "carsoug_Newadmin"
"password" => ""SP>YC\cqkYZ&7k3)d7/##f=&Z8]$+DA"
"unix_socket" => ""
"charset" => "utf8mb4"
"collation" => "utf8mb4_unicode_ci"
"prefix" => ""
"strict" => false
"engine" => null
"options" => array:1 [
12 => false
]
"name" => "mysql"
]
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php
$this->doctrineConnection = new DoctrineConnection([
'pdo' => $this->getPdo(),
'dbname' => $this->getConfig('database'),
'driver' => $driver->getName(),
], $driver);
}
return $this->doctrineConnection;
}
/**
* 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 used for reading.
*
* @return \PDO
*/
public function getReadPdo()
{
if ($this->transactions > 0) {
return $this->getPdo();
}
if ($this->recordsModified && $this->getConfig('sticky')) {
return $this->getPdo();
}
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php
$this->doctrineConnection = new DoctrineConnection([
'pdo' => $this->getPdo(),
'dbname' => $this->getConfig('database'),
'driver' => $driver->getName(),
], $driver);
}
return $this->doctrineConnection;
}
/**
* 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 used for reading.
*
* @return \PDO
*/
public function getReadPdo()
{
if ($this->transactions > 0) {
return $this->getPdo();
}
if ($this->recordsModified && $this->getConfig('sticky')) {
return $this->getPdo();
}
Arguments
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php
*
* @return \Doctrine\DBAL\Schema\AbstractSchemaManager
*/
public function getDoctrineSchemaManager()
{
return $this->getDoctrineDriver()->getSchemaManager($this->getDoctrineConnection());
}
/**
* Get the Doctrine DBAL database connection instance.
*
* @return \Doctrine\DBAL\Connection
*/
public function getDoctrineConnection()
{
if (is_null($this->doctrineConnection)) {
$driver = $this->getDoctrineDriver();
$this->doctrineConnection = new DoctrineConnection([
'pdo' => $this->getPdo(),
'dbname' => $this->getConfig('database'),
'driver' => $driver->getName(),
], $driver);
}
return $this->doctrineConnection;
}
/**
* 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;
/home/carsoug/public_html/vendor/larapack/doctrine-support/src/DoctrineSupportServiceProvider.php
return $connection;
});
}
/**
* Add Doctrine types for the connection.
*
* @param Connection $connection
*/
protected function addDoctrineTypes(Connection $connection)
{
$name = $connection->getDriverName();
foreach (Arr::get($this->types, $name, []) as $type => $handler) {
if (!Type::hasType($type)) {
Type::addType($type, $handler);
}
$connection->getDoctrineConnection()
->getDatabasePlatform()
->registerDoctrineTypeMapping($type, $type);
}
}
}
/home/carsoug/public_html/vendor/larapack/doctrine-support/src/DoctrineSupportServiceProvider.php
*
* @var array
*/
protected $types = [
'mysql' => [
'enum' => EnumType::class,
],
];
/**
* Register the application services.
*/
public function register()
{
// Set resolver for MySQL
Connection::resolverFor('mysql', function ($connection, $database, $prefix = '', array $config = []) {
$connection = new MySqlConnection($connection, $database, $prefix, $config);
// Add Doctrine types for better support
$this->addDoctrineTypes($connection);
return $connection;
});
}
/**
* Add Doctrine types for the connection.
*
* @param Connection $connection
*/
protected function addDoctrineTypes(Connection $connection)
{
$name = $connection->getDriverName();
foreach (Arr::get($this->types, $name, []) as $type => $handler) {
if (!Type::hasType($type)) {
Type::addType($type, $handler);
}
$connection->getDoctrineConnection()
Arguments
Larapack\DoctrineSupport\Connections\MySqlConnection {#824}
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php
throw new InvalidArgumentException("Unsupported driver [{$config['driver']}]");
}
/**
* Create a new connection instance.
*
* @param string $driver
* @param \PDO|\Closure $connection
* @param string $database
* @param string $prefix
* @param array $config
* @return \Illuminate\Database\Connection
*
* @throws \InvalidArgumentException
*/
protected function createConnection($driver, $connection, $database, $prefix = '', array $config = [])
{
if ($resolver = Connection::getResolver($driver)) {
return $resolver($connection, $database, $prefix, $config);
}
switch ($driver) {
case 'mysql':
return new MySqlConnection($connection, $database, $prefix, $config);
case 'pgsql':
return new PostgresConnection($connection, $database, $prefix, $config);
case 'sqlite':
return new SQLiteConnection($connection, $database, $prefix, $config);
case 'sqlsrv':
return new SqlServerConnection($connection, $database, $prefix, $config);
}
throw new InvalidArgumentException("Unsupported driver [{$driver}]");
}
}
Arguments
Larapack\DoctrineSupport\Connections\MySqlConnection {#824}
"carsoug_live"
""
array:14 [
"driver" => "mysql"
"host" => "127.0.0.1"
"port" => "3306"
"database" => "carsoug_live"
"username" => "carsoug_Newadmin"
"password" => ""SP>YC\cqkYZ&7k3)d7/##f=&Z8]$+DA"
"unix_socket" => ""
"charset" => "utf8mb4"
"collation" => "utf8mb4_unicode_ci"
"prefix" => ""
"strict" => false
"engine" => null
"options" => array:1 [
12 => false
]
"name" => "mysql"
]
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php
* @param string $name
* @return array
*/
protected function parseConfig(array $config, $name)
{
return Arr::add(Arr::add($config, 'prefix', ''), 'name', $name);
}
/**
* Create a single database connection instance.
*
* @param array $config
* @return \Illuminate\Database\Connection
*/
protected function createSingleConnection(array $config)
{
$pdo = $this->createPdoResolver($config);
return $this->createConnection(
$config['driver'], $pdo, $config['database'], $config['prefix'], $config
);
}
/**
* Create a single database connection instance.
*
* @param array $config
* @return \Illuminate\Database\Connection
*/
protected function createReadWriteConnection(array $config)
{
$connection = $this->createSingleConnection($this->getWriteConfig($config));
return $connection->setReadPdo($this->createReadPdo($config));
}
/**
* Create a new PDO instance for reading.
*
* @param array $config
Arguments
"mysql"
Closure() {#825 …4}
"carsoug_live"
""
array:14 [
"driver" => "mysql"
"host" => "127.0.0.1"
"port" => "3306"
"database" => "carsoug_live"
"username" => "carsoug_Newadmin"
"password" => ""SP>YC\cqkYZ&7k3)d7/##f=&Z8]$+DA"
"unix_socket" => ""
"charset" => "utf8mb4"
"collation" => "utf8mb4_unicode_ci"
"prefix" => ""
"strict" => false
"engine" => null
"options" => array:1 [
12 => false
]
"name" => "mysql"
]
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php
{
$this->container = $container;
}
/**
* Establish a PDO connection based on the configuration.
*
* @param array $config
* @param string $name
* @return \Illuminate\Database\Connection
*/
public function make(array $config, $name = null)
{
$config = $this->parseConfig($config, $name);
if (isset($config['read'])) {
return $this->createReadWriteConnection($config);
}
return $this->createSingleConnection($config);
}
/**
* Parse and prepare the database configuration.
*
* @param array $config
* @param string $name
* @return array
*/
protected function parseConfig(array $config, $name)
{
return Arr::add(Arr::add($config, 'prefix', ''), 'name', $name);
}
/**
* Create a single database connection instance.
*
* @param array $config
* @return \Illuminate\Database\Connection
*/
Arguments
array:14 [
"driver" => "mysql"
"host" => "127.0.0.1"
"port" => "3306"
"database" => "carsoug_live"
"username" => "carsoug_Newadmin"
"password" => ""SP>YC\cqkYZ&7k3)d7/##f=&Z8]$+DA"
"unix_socket" => ""
"charset" => "utf8mb4"
"collation" => "utf8mb4_unicode_ci"
"prefix" => ""
"strict" => false
"engine" => null
"options" => array:1 [
12 => false
]
"name" => "mysql"
]
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php
*/
protected function makeConnection($name)
{
$config = $this->configuration($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);
}
// Next we will check to see if an extension has been registered for a driver
// 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 = $config['driver']])) {
return call_user_func($this->extensions[$driver], $config, $name);
}
return $this->factory->make($config, $name);
}
/**
* Get the configuration for a connection.
*
* @param string $name
* @return array
*
* @throws \InvalidArgumentException
*/
protected function configuration($name)
{
$name = $name ?: $this->getDefaultConnection();
// To get the database connection configuration, we will just pull each of the
// connection configurations and get the configurations for the given name.
// If the configuration doesn't exist, we'll throw an exception and bail.
$connections = $this->app['config']['database.connections'];
if (is_null($config = Arr::get($connections, $name))) {
Arguments
array:14 [
"driver" => "mysql"
"host" => "127.0.0.1"
"port" => "3306"
"database" => "carsoug_live"
"username" => "carsoug_Newadmin"
"password" => ""SP>YC\cqkYZ&7k3)d7/##f=&Z8]$+DA"
"unix_socket" => ""
"charset" => "utf8mb4"
"collation" => "utf8mb4_unicode_ci"
"prefix" => ""
"strict" => false
"engine" => null
"options" => array:1 [
12 => false
]
"name" => "mysql"
]
"mysql"
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php
}
/**
* Get a database connection instance.
*
* @param string $name
* @return \Illuminate\Database\Connection
*/
public function connection($name = null)
{
[$database, $type] = $this->parseConnectionName($name);
$name = $name ?: $database;
// 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])) {
$this->connections[$name] = $this->configure(
$this->makeConnection($database), $type
);
}
return $this->connections[$name];
}
/**
* Parse the connection into an array of the name and read / write type.
*
* @param string $name
* @return array
*/
protected function parseConnectionName($name)
{
$name = $name ?: $this->getDefaultConnection();
return Str::endsWith($name, ['::read', '::write'])
? explode('::', $name, 2) : [$name, null];
}
Arguments
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Support/Facades/Schema.php
{
/**
* Get a schema builder instance for a connection.
*
* @param string $name
* @return \Illuminate\Database\Schema\Builder
*/
public static function connection($name)
{
return static::$app['db']->connection($name)->getSchemaBuilder();
}
/**
* Get a schema builder instance for the default connection.
*
* @return \Illuminate\Database\Schema\Builder
*/
protected static function getFacadeAccessor()
{
return static::$app['db']->connection()->getSchemaBuilder();
}
}
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php
* @param mixed $instance
* @return void
*/
public static function swap($instance)
{
static::$resolvedInstance[static::getFacadeAccessor()] = $instance;
if (isset(static::$app)) {
static::$app->instance(static::getFacadeAccessor(), $instance);
}
}
/**
* Get the root object behind the facade.
*
* @return mixed
*/
public static function getFacadeRoot()
{
return static::resolveFacadeInstance(static::getFacadeAccessor());
}
/**
* Get the registered name of the component.
*
* @return string
*
* @throws \RuntimeException
*/
protected static function getFacadeAccessor()
{
throw new RuntimeException('Facade does not implement getFacadeAccessor method.');
}
/**
* Resolve the facade root instance from the container.
*
* @param string|object $name
* @return mixed
*/
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php
* @param \Illuminate\Contracts\Foundation\Application $app
* @return void
*/
public static function setFacadeApplication($app)
{
static::$app = $app;
}
/**
* 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);
}
}
/home/carsoug/public_html/vendor/pvtl/voyager-pages/src/Helpers/Routes.php
<?php
namespace Pvtl\VoyagerPages\Helpers;
use Pvtl\VoyagerPages\Page;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\Request;
class Routes
{
/**
* Dynamically register pages.
*/
public static function registerPageRoutes()
{
// Prevents error before our migration has run
if (!Schema::hasTable('pages')) {
return;
}
// Which Page Controller shall we use to display the page? Page Blocks or standard page?
$pageController = '\Pvtl\VoyagerPages\Http\Controllers\PageController';
if (class_exists('\Pvtl\VoyagerFrontend\Http\Controllers\PageController')) {
$pageController = '\Pvtl\VoyagerFrontend\Http\Controllers\PageController';
}
if (class_exists('\Pvtl\VoyagerPageBlocks\Providers\PageBlocksServiceProvider')) {
$pageController = '\Pvtl\VoyagerPageBlocks\Http\Controllers\PageController';
}
// Get all page slugs (note it's cached for 5mins)
$pages = Cache::remember('page/slugs', 5, function () {
return Page::all('slug');
});
$slug = Request::path() === '/' ? 'home' : Request::path();
Arguments
"hasTable"
array:1 [
0 => "pages"
]
/home/carsoug/public_html/vendor/pvtl/voyager-pages/routes/web.php
<?php
/**
* Pages catch-all route
*/
\Pvtl\VoyagerPages\Helpers\Routes::registerPageRoutes();
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php
* @param string $key
* @return void
*/
protected function mergeConfigFrom($path, $key)
{
$config = $this->app['config']->get($key, []);
$this->app['config']->set($key, array_merge(require $path, $config));
}
/**
* Load the given routes file if routes are not already cached.
*
* @param string $path
* @return void
*/
protected function loadRoutesFrom($path)
{
if (! $this->app->routesAreCached()) {
require $path;
}
}
/**
* Register a view file namespace.
*
* @param string|array $path
* @param string $namespace
* @return void
*/
protected function loadViewsFrom($path, $namespace)
{
if (is_array($this->app->config['view']['paths'])) {
foreach ($this->app->config['view']['paths'] as $viewPath) {
if (is_dir($appPath = $viewPath.'/vendor/'.$namespace)) {
$this->app['view']->addNamespace($namespace, $appPath);
}
}
}
Arguments
"/home/carsoug/public_html/vendor/pvtl/voyager-pages/routes/web.php"
/home/carsoug/public_html/vendor/pvtl/voyager-pages/src/Providers/PagesServiceProvider.php
$this->strapMigrations();
$this->strapCommands();
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
$this->app->register(PagesEventServiceProvider::class);
}
/**
* Bootstrap our Routes
*/
protected function strapRoutes()
{
$this->loadRoutesFrom(self::PACKAGE_DIR . 'routes/web.php');
}
/**
* Bootstrap our Publishers
*/
protected function strapPublishers()
{
// Defines which files to copy the root project
}
/**
* Bootstrap our Views
*/
protected function strapViews()
{
// Load views
$this->loadViewsFrom(self::PACKAGE_DIR . 'resources/views', 'voyager-pages');
}
/**
Arguments
"/home/carsoug/public_html/vendor/pvtl/voyager-pages/src/Providers/../../routes/web.php"
/home/carsoug/public_html/vendor/pvtl/voyager-pages/src/Providers/PagesServiceProvider.php
namespace Pvtl\VoyagerPages\Providers;
use Pvtl\VoyagerPages\Commands;
use Illuminate\Support\ServiceProvider;
class PagesServiceProvider extends ServiceProvider
{
/**
* Our root directory for this package to make traversal easier
*/
const PACKAGE_DIR = __DIR__ . '/../../';
/**
* Bootstrap the application services
*
* @return void
*/
public function boot()
{
$this->strapRoutes();
$this->strapPublishers();
$this->strapViews();
$this->strapMigrations();
$this->strapCommands();
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
$this->app->register(PagesEventServiceProvider::class);
}
/**
* Bootstrap our Routes
*/
protected function strapRoutes()
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
class BoundMethod
{
/**
* Call the given Closure / class@method and inject its dependencies.
*
* @param \Illuminate\Container\Container $container
* @param callable|string $callback
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
*/
public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
{
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return call_user_func_array(
$callback, 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
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
class BoundMethod
{
/**
* Call the given Closure / class@method and inject its dependencies.
*
* @param \Illuminate\Container\Container $container
* @param callable|string $callback
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
*/
public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
{
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return call_user_func_array(
$callback, 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
Arguments
array:2 [
0 => Pvtl\VoyagerPages\Providers\PagesServiceProvider {#150}
1 => "boot"
]
[]
/home/carsoug/public_html/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 $default instanceof Closure ? $default() : $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 $default instanceof Closure ? $default() : $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
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
/**
* Call the given Closure / class@method and inject its dependencies.
*
* @param \Illuminate\Container\Container $container
* @param callable|string $callback
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
*/
public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
{
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return call_user_func_array(
$callback, 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
// we can pass right back into the "call" method for dependency binding.
Arguments
Illuminate\Foundation\Application {#2}
array:2 [
0 => Pvtl\VoyagerPages\Providers\PagesServiceProvider {#150}
1 => "boot"
]
Closure() {#31 …3}
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php
* @return \Closure
*/
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 $parameters
* @param string|null $defaultMethod
* @return mixed
*/
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 $abstract
* @param array $parameters
Arguments
Illuminate\Foundation\Application {#2}
array:2 [
0 => Pvtl\VoyagerPages\Providers\PagesServiceProvider {#150}
1 => "boot"
]
[]
null
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
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 mixed
*/
protected function bootProvider(ServiceProvider $provider)
{
if (method_exists($provider, 'boot')) {
return $this->call([$provider, 'boot']);
}
}
/**
* 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
*/
Arguments
array:2 [
0 => Pvtl\VoyagerPages\Providers\PagesServiceProvider {#150}
1 => "boot"
]
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
}
/**
* Boot the application's service providers.
*
* @return void
*/
public function boot()
{
if ($this->booted) {
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 mixed
*/
protected function bootProvider(ServiceProvider $provider)
{
if (method_exists($provider, 'boot')) {
return $this->call([$provider, 'boot']);
}
}
Arguments
Pvtl\VoyagerPages\Providers\PagesServiceProvider {#150}
[internal]
Arguments
Pvtl\VoyagerPages\Providers\PagesServiceProvider {#150}
32
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
/**
* Boot the application's service providers.
*
* @return void
*/
public function boot()
{
if ($this->booted) {
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 mixed
*/
protected function bootProvider(ServiceProvider $provider)
{
if (method_exists($provider, 'boot')) {
return $this->call([$provider, 'boot']);
}
}
/**
Arguments
array:53 [
0 => Illuminate\Events\EventServiceProvider {#6}
1 => Illuminate\Log\LogServiceProvider {#8}
2 => Illuminate\Routing\RoutingServiceProvider {#10}
3 => Illuminate\Auth\AuthServiceProvider {#41}
4 => Illuminate\Cookie\CookieServiceProvider {#35}
5 => Illuminate\Database\DatabaseServiceProvider {#51}
6 => Illuminate\Encryption\EncryptionServiceProvider {#58}
7 => Illuminate\Filesystem\FilesystemServiceProvider {#60}
8 => Illuminate\Foundation\Providers\FormRequestServiceProvider {#66}
9 => Illuminate\Foundation\Providers\FoundationServiceProvider {#65}
10 => Illuminate\Notifications\NotificationServiceProvider {#69}
11 => Illuminate\Pagination\PaginationServiceProvider {#71}
12 => Illuminate\Session\SessionServiceProvider {#75}
13 => Illuminate\View\ViewServiceProvider {#79}
14 => Indal\Markdown\MarkdownServiceProvider {#83}
15 => Arrilot\Widgets\ServiceProvider {#86}
16 => Barryvdh\Debugbar\ServiceProvider {#93}
17 => Cmgmyr\Messenger\MessengerServiceProvider {#97}
18 => Fideloper\Proxy\TrustedProxyServiceProvider {#98}
19 => Intervention\Image\ImageServiceProvider {#99}
20 => Larapack\DoctrineSupport\DoctrineSupportServiceProvider {#102}
21 => Larapack\Hooks\HooksServiceProvider {#105}
22 => Larapack\VoyagerHooks\VoyagerHooksServiceProvider {#104}
23 => Illuminate\Database\Eloquent\LegacyFactoryServiceProvider {#126}
24 => Illuminate\Notifications\NexmoChannelServiceProvider {#56}
25 => Laravel\Scout\ScoutServiceProvider {#130}
26 => Illuminate\Notifications\SlackChannelServiceProvider {#132}
27 => Maatwebsite\Excel\ExcelServiceProvider {#134}
28 => Carbon\Laravel\ServiceProvider {#146}
29 => Pvtl\VoyagerBlog\Providers\BlogServiceProvider {#147}
30 => Pvtl\VoyagerFrontend\Providers\VoyagerFrontendServiceProvider {#148}
31 => Pvtl\VoyagerPages\Providers\PagesEventServiceProvider {#151}
32 => Pvtl\VoyagerPages\Providers\PagesServiceProvider {#150}
33 => RenatoMarinho\LaravelPageSpeed\ServiceProvider {#152}
34 => Spatie\Backup\BackupServiceProvider {#153}
35 => Spatie\Feed\FeedServiceProvider {#169}
36 => Spatie\LaravelImageOptimizer\ImageOptimizerServiceProvider {#171}
37 => Spatie\Sitemap\SitemapServiceProvider {#174}
38 => TCG\Voyager\Providers\VoyagerEventServiceProvider {#176}
39 => TCG\Voyager\Providers\VoyagerDummyServiceProvider {#177}
40 => TCG\Voyager\VoyagerServiceProvider {#175}
41 => TeamTNT\Scout\TNTSearchScoutServiceProvider {#2311}
42 => Watson\Sitemap\SitemapServiceProvider {#2310}
43 => App\Providers\AppServiceProvider {#2308}
44 => App\Providers\AuthServiceProvider {#2306}
45 => App\Providers\EventServiceProvider {#2305}
46 => App\Providers\RouteServiceProvider {#2304}
47 => Illuminate\Foundation\Providers\ArtisanServiceProvider {#1491}
48 => Illuminate\Database\MigrationServiceProvider {#1284}
49 => Illuminate\Foundation\Providers\ComposerServiceProvider {#1280}
50 => Illuminate\Foundation\Providers\ConsoleSupportServiceProvider {#2294}
51 => Illuminate\Translation\TranslationServiceProvider {#1242}
52 => Illuminate\Hashing\HashServiceProvider {#814}
]
Closure($p) {#22 …4}
/home/carsoug/public_html/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();
}
}
/home/carsoug/public_html/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)
{
return $this->afterBootstrapping(
LoadEnvironmentVariables::class, $callback
);
}
/**
* Register a callback to run before a bootstrapper.
Arguments
Illuminate\Foundation\Application {#2}
/home/carsoug/public_html/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.
*
Arguments
array:6 [
0 => "Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables"
1 => "Illuminate\Foundation\Bootstrap\LoadConfiguration"
2 => "Illuminate\Foundation\Bootstrap\HandleExceptions"
3 => "Illuminate\Foundation\Bootstrap\RegisterFacades"
4 => "Illuminate\Foundation\Bootstrap\RegisterProviders"
5 => "Illuminate\Foundation\Bootstrap\BootProviders"
]
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
$this->app['events']->dispatch(
new Events\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());
}
}
/**
/home/carsoug/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
$router->middlewareGroup($key, $middleware);
}
foreach ($this->routeMiddleware as $key => $middleware) {
$router->aliasMiddleware($key, $middleware);
}
}
/**
* 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 (Exception $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
} catch (Throwable $e) {
$this->reportException($e = new FatalThrowableError($e));
$response = $this->renderException($request, $e);
}
$this->app['events']->dispatch(
new Events\RequestHandled($request, $response)
);
return $response;
}
/**
* Send the given request through the middleware / router.
*
Arguments
Illuminate\Http\Request {#42
#json: null
#convertedFiles: null
#userResolver: null
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
+request: Symfony\Component\HttpFoundation\ParameterBag {#50}
+query: Symfony\Component\HttpFoundation\ParameterBag {#50}
+server: Symfony\Component\HttpFoundation\ServerBag {#46}
+files: Symfony\Component\HttpFoundation\FileBag {#47}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: null
#requestUri: null
#baseUrl: null
#basePath: null
#method: null
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
pathInfo: "/%D8%AD%D8%B1%D8%A7%D8%AC-%D8%AC%D9%8A%D8%A8/%D9%83%D9%88%D9%85%D8%A7%D9%86%D8%AF%D8%B1"
requestUri: "/%D8%AD%D8%B1%D8%A7%D8%AC-%D8%AC%D9%8A%D8%A8/%D9%83%D9%88%D9%85%D8%A7%D9%86%D8%AF%D8%B1"
baseUrl: ""
basePath: ""
method: "GET"
format: "html"
}
/home/carsoug/public_html/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);
Arguments
Illuminate\Http\Request {#42
#json: null
#convertedFiles: null
#userResolver: null
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
+request: Symfony\Component\HttpFoundation\ParameterBag {#50}
+query: Symfony\Component\HttpFoundation\ParameterBag {#50}
+server: Symfony\Component\HttpFoundation\ServerBag {#46}
+files: Symfony\Component\HttpFoundation\FileBag {#47}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: null
#requestUri: null
#baseUrl: null
#basePath: null
#method: null
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
pathInfo: "/%D8%AD%D8%B1%D8%A7%D8%AC-%D8%AC%D9%8A%D8%A8/%D9%83%D9%88%D9%85%D8%A7%D9%86%D8%AF%D8%B1"
requestUri: "/%D8%AD%D8%B1%D8%A7%D8%AC-%D8%AC%D9%8A%D8%A8/%D9%83%D9%88%D9%85%D8%A7%D9%86%D8%AF%D8%B1"
baseUrl: ""
basePath: ""
method: "GET"
format: "html"
}
/home/carsoug/public_html/index.php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylor@laravel.com>
*/
$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
Arguments
"/home/carsoug/public_html/public/index.php"