/home/sbibhysg/public_html/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
"SQLSTATE[42000]: Syntax error or access violation: 1286 Unknown storage engine 'InnoDB' (SQL: select * from `settings`)"
[internal]
Arguments
Botble\Media\Providers\MediaServiceProvider {#140}
32
/home/sbibhysg/public_html/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)
{
Arguments
"SQLSTATE[42000]: Syntax error or access violation: 1286 Unknown storage engine 'InnoDB'"
/home/sbibhysg/public_html/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)
{
Arguments
"select * from `settings`"
/home/sbibhysg/public_html/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
*/
Arguments
"select * from `settings`"
[]
/home/sbibhysg/public_html/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
Arguments
"select * from `settings`"
[]
Closure($query, $bindings) {#420 …4}
/home/sbibhysg/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php
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)
{
$statement = $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
if ($this->pretending()) {
return [];
}
// First we will create a statement for the query. Then, we will set the fetch
// mode and prepare the bindings for the query. Once that's done we will be
// ready to execute the query against the database and return the cursor.
Arguments
"select * from `settings`"
[]
Closure($query, $bindings) {#420 …4}
/home/sbibhysg/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
*
* @param array|string $columns
* @return \Illuminate\Support\Collection
*/
public function get($columns = ['*'])
{
return collect($this->onceWithColumns(Arr::wrap($columns), function () {
return $this->processor->processSelect($this, $this->runSelect());
}));
}
/**
* Run the query as a "select" statement against the connection.
*
* @return array
*/
protected function runSelect()
{
return $this->connection->select(
$this->toSql(), $this->getBindings(), ! $this->useWritePdo
);
}
/**
* Paginate the given query into a simple paginator.
*
* @param int $perPage
* @param array $columns
* @param string $pageName
* @param int|null $page
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
*/
public function paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)
{
$page = $page ?: Paginator::resolveCurrentPage($pageName);
$total = $this->getCountForPagination();
$results = $total ? $this->forPage($page, $perPage)->get($columns) : collect();
Arguments
"select * from `settings`"
[]
true
/home/sbibhysg/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
* @param string $column
* @return mixed
*/
public function value($column)
{
$result = (array) $this->first([$column]);
return count($result) > 0 ? reset($result) : null;
}
/**
* Execute the query as a "select" statement.
*
* @param array|string $columns
* @return \Illuminate\Support\Collection
*/
public function get($columns = ['*'])
{
return collect($this->onceWithColumns(Arr::wrap($columns), function () {
return $this->processor->processSelect($this, $this->runSelect());
}));
}
/**
* Run the query as a "select" statement against the connection.
*
* @return array
*/
protected function runSelect()
{
return $this->connection->select(
$this->toSql(), $this->getBindings(), ! $this->useWritePdo
);
}
/**
* Paginate the given query into a simple paginator.
*
* @param int $perPage
* @param array $columns
/home/sbibhysg/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
}
/**
* Execute the given callback while selecting the given columns.
*
* After running the callback, the columns are reset to the original value.
*
* @param array $columns
* @param callable $callback
* @return mixed
*/
protected function onceWithColumns($columns, $callback)
{
$original = $this->columns;
if (is_null($original)) {
$this->columns = $columns;
}
$result = $callback();
$this->columns = $original;
return $result;
}
/**
* Insert new records into the database.
*
* @param array $values
* @return bool
*/
public function insert(array $values)
{
// Since every insert gets treated like a batch insert, we will make sure the
// bindings are structured in a way that is convenient when building these
// inserts statements by verifying these elements are actually an array.
if (empty($values)) {
return true;
}
/home/sbibhysg/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
* @return mixed
*/
public function value($column)
{
$result = (array) $this->first([$column]);
return count($result) > 0 ? reset($result) : null;
}
/**
* Execute the query as a "select" statement.
*
* @param array|string $columns
* @return \Illuminate\Support\Collection
*/
public function get($columns = ['*'])
{
return collect($this->onceWithColumns(Arr::wrap($columns), function () {
return $this->processor->processSelect($this, $this->runSelect());
}));
}
/**
* Run the query as a "select" statement against the connection.
*
* @return array
*/
protected function runSelect()
{
return $this->connection->select(
$this->toSql(), $this->getBindings(), ! $this->useWritePdo
);
}
/**
* Paginate the given query into a simple paginator.
*
* @param int $perPage
* @param array $columns
* @param string $pageName
Arguments
array:1 [
0 => "*"
]
Closure() {#409 …4}
/home/sbibhysg/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php
// If we actually found models we will also eager load any relationships that
// have been specified as needing to be eager loaded, which will solve the
// n+1 query issue for the developers to avoid running a lot of queries.
if (count($models = $builder->getModels($columns)) > 0) {
$models = $builder->eagerLoadRelations($models);
}
return $builder->getModel()->newCollection($models);
}
/**
* Get the hydrated models without eager loading.
*
* @param array|string $columns
* @return \Illuminate\Database\Eloquent\Model[]|static[]
*/
public function getModels($columns = ['*'])
{
return $this->model->hydrate(
$this->query->get($columns)->all()
)->all();
}
/**
* Eager load the relationships for the models.
*
* @param array $models
* @return array
*/
public function eagerLoadRelations(array $models)
{
foreach ($this->eagerLoad as $name => $constraints) {
// For nested eager loads we'll skip loading them here and they will be set as an
// eager load on the query to retrieve the relation so that they will be eager
// loaded on that query, because that is where they get hydrated as models.
if (strpos($name, '.') === false) {
$models = $this->eagerLoadRelation($models, $name, $constraints);
}
}
Arguments
/home/sbibhysg/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php
*/
public function valueOrFail($column)
{
return $this->firstOrFail([$column])->{Str::afterLast($column, '.')};
}
/**
* Execute the query as a "select" statement.
*
* @param array|string $columns
* @return \Illuminate\Database\Eloquent\Collection|static[]
*/
public function get($columns = ['*'])
{
$builder = $this->applyScopes();
// If we actually found models we will also eager load any relationships that
// have been specified as needing to be eager loaded, which will solve the
// n+1 query issue for the developers to avoid running a lot of queries.
if (count($models = $builder->getModels($columns)) > 0) {
$models = $builder->eagerLoadRelations($models);
}
return $builder->getModel()->newCollection($models);
}
/**
* Get the hydrated models without eager loading.
*
* @param array|string $columns
* @return \Illuminate\Database\Eloquent\Model[]|static[]
*/
public function getModels($columns = ['*'])
{
return $this->model->hydrate(
$this->query->get($columns)->all()
)->all();
}
/**
Arguments
/home/sbibhysg/public_html/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php
use BadMethodCallException;
use Error;
trait ForwardsCalls
{
/**
* Forward a method call to the given object.
*
* @param mixed $object
* @param string $method
* @param array $parameters
* @return mixed
*
* @throws \BadMethodCallException
*/
protected function forwardCallTo($object, $method, $parameters)
{
try {
return $object->{$method}(...$parameters);
} catch (Error|BadMethodCallException $e) {
$pattern = '~^Call to undefined method (?P<class>[^:]+)::(?P<method>[^\(]+)\(\)$~';
if (! preg_match($pattern, $e->getMessage(), $matches)) {
throw $e;
}
if ($matches['class'] != get_class($object) ||
$matches['method'] != $method) {
throw $e;
}
static::throwBadMethodCallException($method);
}
}
/**
* Forward a method call to the given object, returning $this if the forwarded call returned itself.
*
* @param mixed $object
/home/sbibhysg/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php
}
/**
* Handle dynamic method calls into the model.
*
* @param string $method
* @param array $parameters
* @return mixed
*/
public function __call($method, $parameters)
{
if (in_array($method, ['increment', 'decrement'])) {
return $this->$method(...$parameters);
}
if ($resolver = (static::$relationResolvers[get_class($this)][$method] ?? null)) {
return $resolver($this);
}
return $this->forwardCallTo($this->newQuery(), $method, $parameters);
}
/**
* Handle dynamic static method calls into the model.
*
* @param string $method
* @param array $parameters
* @return mixed
*/
public static function __callStatic($method, $parameters)
{
return (new static)->$method(...$parameters);
}
/**
* Convert the model to its string representation.
*
* @return string
*/
public function __toString()
Arguments
Botble\Base\Models\BaseQueryBuilder {#417}
"get"
[]
/home/sbibhysg/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php
return $this->$method(...$parameters);
}
if ($resolver = (static::$relationResolvers[get_class($this)][$method] ?? null)) {
return $resolver($this);
}
return $this->forwardCallTo($this->newQuery(), $method, $parameters);
}
/**
* Handle dynamic static method calls into the model.
*
* @param string $method
* @param array $parameters
* @return mixed
*/
public static function __callStatic($method, $parameters)
{
return (new static)->$method(...$parameters);
}
/**
* Convert the model to its string representation.
*
* @return string
*/
public function __toString()
{
return $this->escapeWhenCastingToString
? e($this->toJson())
: $this->toJson();
}
/**
* Indicate that the object's string representation should be escaped when __toString is invoked.
*
* @param bool $escape
* @return $this
*/
Arguments
/home/sbibhysg/public_html/vendor/botble/platform/setting/src/Supports/DatabaseSettingStore.php
$this->connectedDatabase = Helper::isConnectedDatabase();
}
if (!$this->connectedDatabase) {
return [];
}
$isSettingCacheEnabled = config('core.setting.general.cache.enabled');
if ($isSettingCacheEnabled) {
$jsonSettingStore = new JsonSettingStore(new Filesystem());
if (File::exists($jsonSettingStore->getPath())) {
$data = $jsonSettingStore->read();
if (!empty($data)) {
return $data;
}
}
}
$data = $this->parseReadData(Setting::get());
if ($isSettingCacheEnabled) {
if (!isset($jsonSettingStore)) {
$jsonSettingStore = new JsonSettingStore(new Filesystem());
}
$jsonSettingStore->write($data);
}
return $data;
}
/**
* Parse data coming from the database.
*
* @param Collection|array $data
*
* @return array
*/
public function parseReadData($data): array
Arguments
/home/sbibhysg/public_html/vendor/botble/platform/setting/src/Supports/SettingStore.php
// either nothing has been changed, or data has not been loaded, so
// do nothing by returning early
return false;
}
$this->write($this->data);
$this->unsaved = false;
return true;
}
/**
* Make sure data is loaded.
*
* @param boolean $force Force a reload of data. Default false.
*/
public function load(bool $force = false)
{
if (!$this->loaded || $force) {
$this->data = $this->read();
$this->loaded = true;
}
}
/**
* Read the data from the store.
*
* @return array
*/
abstract protected function read(): array;
/**
* Write the data into the store.
*
* @param array $data
*
* @return void
*/
abstract protected function write(array $data);
}
/home/sbibhysg/public_html/vendor/botble/platform/setting/src/Supports/SettingStore.php
protected $unsaved = false;
/**
* Whether the settings data are loaded.
*
* @var boolean
*/
protected $loaded = false;
/**
* Get a specific key from the settings data.
*
* @param string|array $key
* @param mixed $default Optional default value.
*
* @return mixed
*/
public function get($key, $default = null)
{
$this->load();
return Arr::get($this->data, $key, $default);
}
/**
* Determine if a key exists in the settings data.
*
* @param string $key
*
* @return boolean
*/
public function has(string $key): bool
{
$this->load();
return Arr::has($this->data, $key);
}
/**
* Set a specific key to a value in the settings data.
/home/sbibhysg/public_html/vendor/botble/platform/media/src/Providers/MediaServiceProvider.php
'region' => $config['region'],
'version' => 'latest',
]);
$adapter = new AwsS3Adapter($client, $config['bucket'], $config['root']);
return new Filesystem($adapter);
});
Storage::extend('bunnycdn', function ($app, $config) {
$adapter = new BunnyCDNAdapter(new BunnyCDNStorage($config['zone'], $config['key'], $config['region']));
return new Filesystem($adapter);
});
$config = $this->app->make('config');
$setting = $this->app->make(SettingStore::class);
$config->set([
'filesystems.default' => $setting->get('media_driver', 'public'),
'filesystems.disks.s3' => [
'driver' => 's3',
'visibility' => 'public',
'key' => $setting->get('media_aws_access_key_id', $config->get('filesystems.disks.s3.key')),
'secret' => $setting->get('media_aws_secret_key', $config->get('filesystems.disks.s3.secret')),
'region' => $setting->get('media_aws_default_region', $config->get('filesystems.disks.s3.region')),
'bucket' => $setting->get('media_aws_bucket', $config->get('filesystems.disks.s3.bucket')),
'url' => $setting->get('media_aws_url', $config->get('filesystems.disks.s3.url')),
'endpoint' => $setting->get('media_aws_endpoint', $config->get('filesystems.disks.s3.endpoint')) ?: null,
'use_path_style_endpoint' => $config->get('filesystems.disks.s3.use_path_style_endpoint'),
],
'filesystems.disks.do_spaces' => [
'driver' => 's3',
'visibility' => 'public',
'key' => $setting->get('media_do_spaces_access_key_id'),
'secret' => $setting->get('media_do_spaces_secret_key'),
'region' => $setting->get('media_do_spaces_default_region'),
'bucket' => $setting->get('media_do_spaces_bucket'),
'endpoint' => $setting->get('media_do_spaces_endpoint'),
],
Arguments
/home/sbibhysg/public_html/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
/home/sbibhysg/public_html/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();
/home/sbibhysg/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 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
Arguments
/home/sbibhysg/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
* @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
// we can pass right back into the "call" method for dependency binding.
Arguments
Illuminate\Foundation\Application {#4}
array:2 [
0 => Botble\Media\Providers\MediaServiceProvider {#140}
1 => "boot"
]
Closure() {#116 …3}
/home/sbibhysg/public_html/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
Arguments
Illuminate\Foundation\Application {#4}
array:2 [
0 => Botble\Media\Providers\MediaServiceProvider {#140}
1 => "boot"
]
[]
null
/home/sbibhysg/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
$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']);
}
$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
Arguments
array:2 [
0 => Botble\Media\Providers\MediaServiceProvider {#140}
1 => "boot"
]
/home/sbibhysg/public_html/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']);
}
Arguments
Botble\Media\Providers\MediaServiceProvider {#140}
[internal]
Arguments
Botble\Media\Providers\MediaServiceProvider {#140}
32
/home/sbibhysg/public_html/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']);
}
Arguments
array:71 [
0 => Illuminate\Events\EventServiceProvider {#7}
1 => Illuminate\Log\LogServiceProvider {#9}
2 => Illuminate\Routing\RoutingServiceProvider {#11}
3 => Illuminate\Auth\AuthServiceProvider {#117}
4 => Illuminate\Cookie\CookieServiceProvider {#103}
5 => Illuminate\Database\DatabaseServiceProvider {#63}
6 => Illuminate\Encryption\EncryptionServiceProvider {#94}
7 => Illuminate\Filesystem\FilesystemServiceProvider {#90}
8 => Illuminate\Foundation\Providers\FormRequestServiceProvider {#84}
9 => Illuminate\Testing\ParallelTestingServiceProvider {#83}
10 => Illuminate\Foundation\Providers\FoundationServiceProvider {#85}
11 => Illuminate\Notifications\NotificationServiceProvider {#78}
12 => Illuminate\Pagination\PaginationServiceProvider {#76}
13 => Illuminate\Session\SessionServiceProvider {#70}
14 => Illuminate\View\ViewServiceProvider {#65}
15 => Barryvdh\DomPDF\ServiceProvider {#38}
16 => Botble\Api\Providers\ApiServiceProvider {#57}
17 => Botble\Assets\Providers\AssetsServiceProvider {#56}
18 => Botble\Menu\Providers\MenuServiceProvider {#60}
19 => Botble\Page\Providers\PageServiceProvider {#59}
20 => Botble\Setting\Providers\SettingServiceProvider {#119}
21 => Botble\Base\Providers\BaseServiceProvider {#61}
22 => Botble\Base\Providers\CommandServiceProvider {#124}
23 => Botble\Base\Providers\EventServiceProvider {#125}
24 => Botble\Base\Providers\BreadcrumbsServiceProvider {#127}
25 => Botble\Base\Providers\ComposerServiceProvider {#128}
26 => Botble\Base\Providers\MailConfigServiceProvider {#129}
27 => Botble\Base\Providers\FormServiceProvider {#130}
28 => Botble\Support\Providers\SupportServiceProvider {#131}
29 => Botble\Table\Providers\TableServiceProvider {#132}
30 => Botble\ACL\Providers\AclServiceProvider {#133}
31 => Botble\Dashboard\Providers\DashboardServiceProvider {#137}
32 => Botble\Media\Providers\MediaServiceProvider {#140}
33 => Botble\JsValidation\Providers\JsValidationServiceProvider {#144}
34 => Botble\Chart\Providers\ChartServiceProvider {#146}
35 => Botble\PluginManagement\Providers\PluginManagementServiceProvider {#147}
36 => Botble\Revision\Providers\RevisionServiceProvider {#148}
37 => Botble\SeoHelper\Providers\SeoHelperServiceProvider {#149}
38 => Botble\Shortcode\Providers\ShortcodeServiceProvider {#154}
39 => Botble\Sitemap\Providers\SitemapServiceProvider {#66}
40 => Botble\Slug\Providers\SlugServiceProvider {#160}
41 => Botble\Theme\Providers\ThemeServiceProvider {#164}
42 => Botble\Theme\Providers\RouteServiceProvider {#167}
43 => Botble\Widget\Providers\WidgetServiceProvider {#169}
44 => Fideloper\Proxy\TrustedProxyServiceProvider {#173}
45 => Fruitcake\Cors\CorsServiceProvider {#174}
46 => Intervention\Image\ImageServiceProvider {#176}
47 => Knuckles\Scribe\ScribeServiceProvider {#179}
48 => Kris\LaravelFormBuilder\FormBuilderServiceProvider {#180}
49 => Laravel\Passport\PassportServiceProvider {#185}
50 => Maatwebsite\Excel\ExcelServiceProvider {#192}
51 => Mews\Purifier\PurifierServiceProvider {#204}
52 => Carbon\Laravel\ServiceProvider {#206}
53 => NunoMaduro\Collision\Adapters\Laravel\CollisionServiceProvider {#207}
54 => Spatie\Feed\FeedServiceProvider {#208}
55 => Tightenco\Ziggy\ZiggyServiceProvider {#210}
56 => Unicodeveloper\Paystack\PaystackServiceProvider {#211}
57 => Collective\Html\HtmlServiceProvider {#215}
58 => Yajra\DataTables\HtmlServiceProvider {#214}
59 => Yajra\DataTables\ButtonsServiceProvider {#213}
60 => Yajra\DataTables\DataTablesServiceProvider {#220}
61 => App\Providers\AppServiceProvider {#224}
62 => App\Providers\AuthServiceProvider {#225}
63 => App\Providers\EventServiceProvider {#226}
64 => App\Providers\RouteServiceProvider {#228}
65 => Botble\Menu\Providers\EventServiceProvider {#252}
66 => Botble\Menu\Providers\CommandServiceProvider {#254}
67 => Botble\Page\Providers\EventServiceProvider {#271}
68 => Botble\ACL\Providers\CommandServiceProvider {#339}
69 => Botble\ACL\Providers\EventServiceProvider {#343}
70 => Illuminate\Hashing\HashServiceProvider {#428}
]
Closure($p) {#41 …4}
/home/sbibhysg/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/sbibhysg/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)
{
$this->afterBootstrapping(
LoadEnvironmentVariables::class, $callback
);
}
/**
* Register a callback to run before a bootstrapper.
Arguments
Illuminate\Foundation\Application {#4}
/home/sbibhysg/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/sbibhysg/public_html/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());
}
}
/**
/home/sbibhysg/public_html/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)
Arguments
Illuminate\Http\Request {#45
#json: null
#convertedFiles: null
#userResolver: null
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#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
-isSafeContentPreferred: null
pathInfo: "/properties/resale-unit-serviced-apartment-stunning-views-1"
requestUri: "/properties/resale-unit-serviced-apartment-stunning-views-1"
baseUrl: ""
basePath: ""
method: "GET"
format: "html"
}
/home/sbibhysg/public_html/public/index.php
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request using
| the application's HTTP kernel. Then, we will send the response back
| to this client's browser, allowing them to enjoy our application.
|
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
$app->bind('path.public', function () {
return __DIR__;
});
$kernel = $app->make(Kernel::class);
$response = $kernel->handle(
$request = Request::capture()
)->send();
$kernel->terminate($request, $response);
Arguments
Illuminate\Http\Request {#45
#json: null
#convertedFiles: null
#userResolver: null
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
+request: Symfony\Component\HttpFoundation\InputBag {#53}
+query: Symfony\Component\HttpFoundation\InputBag {#53}
+server: Symfony\Component\HttpFoundation\ServerBag {#49}
+files: Symfony\Component\HttpFoundation\FileBag {#50}
+cookies: Symfony\Component\HttpFoundation\InputBag {#48}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
#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
-isSafeContentPreferred: null
pathInfo: "/properties/resale-unit-serviced-apartment-stunning-views-1"
requestUri: "/properties/resale-unit-serviced-apartment-stunning-views-1"
baseUrl: ""
basePath: ""
method: "GET"
format: "html"
}