/var/www/html/admin_html/Modules/Admin/Entities/Domains.php
{
protected $table = 'domains';
public static function db_shift_domain()
{
Config::set('database.default', 'mysql');
DB::reconnect('mysql');
$region_id = \Request::segment(1);
if($region_id==null)
$region_id="eu-en";
$region_split = explode('-', $region_id);
$region = Region::with('regionLanguages')->where('slug',$region_split[0])->first();
$domain = Domains::where('region_id',$region->id)->first();
Config::set('database.connections.domain.database', $domain ->database_name);
Config::set('database.default', 'domain');
DB::reconnect('domain');
return true;
}
public static function db_shift_selected_domain($region_id)
{
$domain = Domains::where('region_id',$region_id)->first();
Config::set('database.connections.domain.database', $domain ->database_name);
Config::set('database.default', 'domain');
DB::reconnect('domain');
return true;
}
public static function db_shift_core()
Arguments
"Trying to get property 'id' of non-object"
/var/www/html/admin_html/Modules/Admin/Entities/Domains.php
{
protected $table = 'domains';
public static function db_shift_domain()
{
Config::set('database.default', 'mysql');
DB::reconnect('mysql');
$region_id = \Request::segment(1);
if($region_id==null)
$region_id="eu-en";
$region_split = explode('-', $region_id);
$region = Region::with('regionLanguages')->where('slug',$region_split[0])->first();
$domain = Domains::where('region_id',$region->id)->first();
Config::set('database.connections.domain.database', $domain ->database_name);
Config::set('database.default', 'domain');
DB::reconnect('domain');
return true;
}
public static function db_shift_selected_domain($region_id)
{
$domain = Domains::where('region_id',$region_id)->first();
Config::set('database.connections.domain.database', $domain ->database_name);
Config::set('database.default', 'domain');
DB::reconnect('domain');
return true;
}
public static function db_shift_core()
Arguments
8
"Trying to get property 'id' of non-object"
"/var/www/html/admin_html/Modules/Admin/Entities/Domains.php"
28
array:3 [
"region_id" => "pdf"
"region_split" => array:1 [
0 => "pdf"
]
"region" => null
]
/var/www/html/admin_html/vendor/spatie/laravel-translation-loader/src/LanguageLine.php
public $guarded = ['id'];
/** @var array */
protected $casts = ['text' => 'array'];
public static function boot()
{
parent::boot();
static::saved(function (LanguageLine $languageLine) {
$languageLine->flushGroupCache();
});
static::deleted(function (LanguageLine $languageLine) {
$languageLine->flushGroupCache();
});
}
public static function getTranslationsForGroup(string $locale, string $group): array
{
Domains::db_shift_domain();
return Cache::rememberForever(static::getCacheKey($group, $locale), function () use ($group, $locale) {
return static::query()
->where('group', $group)
->get()
->reduce(function ($lines, LanguageLine $languageLine) use ($locale) {
$translation = $languageLine->getTranslation($locale);
if ($translation !== null) {
array_set($lines, $languageLine->key, $translation);
}
return $lines;
}) ?? [];
});
}
public static function getCacheKey(string $group, string $locale): string
{
return "spatie.translation-loader.{$group}.{$locale}";
}
/var/www/html/admin_html/vendor/spatie/laravel-translation-loader/src/TranslationLoaders/Db.php
<?php
namespace Spatie\TranslationLoader\TranslationLoaders;
use Spatie\TranslationLoader\LanguageLine;
use Spatie\TranslationLoader\Exceptions\InvalidConfiguration;
class Db implements TranslationLoader
{
public function loadTranslations(string $locale, string $group): array
{
$model = $this->getConfiguredModelClass();
return $model::getTranslationsForGroup($locale, $group);
}
protected function getConfiguredModelClass(): string
{
$modelClass = config('translation-loader.model');
if (! is_a(new $modelClass, LanguageLine::class)) {
throw InvalidConfiguration::invalidModel($modelClass);
}
return $modelClass;
}
}
Arguments
/var/www/html/admin_html/vendor/spatie/laravel-translation-loader/src/TranslationLoaderManager.php
if (! is_null($namespace) && $namespace !== '*') {
return $fileTranslations;
}
$loaderTranslations = $this->getTranslationsForTranslationLoaders($locale, $group, $namespace);
return array_replace_recursive($fileTranslations, $loaderTranslations);
}
protected function getTranslationsForTranslationLoaders(
string $locale,
string $group,
string $namespace = null
): array {
return collect(config('translation-loader.translation_loaders'))
->map(function (string $className) {
return app($className);
})
->mapWithKeys(function (TranslationLoader $translationLoader) use ($locale, $group, $namespace) {
return $translationLoader->loadTranslations($locale, $group, $namespace);
})
->toArray();
}
}
Arguments
/var/www/html/admin_html/vendor/laravel/framework/src/Illuminate/Support/Collection.php
{
$groups = $this->mapToDictionary($callback);
return $groups->map([$this, 'make']);
}
/**
* Run an associative map over each of the items.
*
* The callback should return an associative array with a single key/value pair.
*
* @param callable $callback
* @return static
*/
public function mapWithKeys(callable $callback)
{
$result = [];
foreach ($this->items as $key => $value) {
$assoc = $callback($value, $key);
foreach ($assoc as $mapKey => $mapValue) {
$result[$mapKey] = $mapValue;
}
}
return new static($result);
}
/**
* Map a collection and flatten the result by a single level.
*
* @param callable $callback
* @return static
*/
public function flatMap(callable $callback)
{
return $this->map($callback)->collapse();
}
Arguments
Spatie\TranslationLoader\TranslationLoaders\Db {#140}
0
/var/www/html/admin_html/vendor/spatie/laravel-translation-loader/src/TranslationLoaderManager.php
return $fileTranslations;
}
$loaderTranslations = $this->getTranslationsForTranslationLoaders($locale, $group, $namespace);
return array_replace_recursive($fileTranslations, $loaderTranslations);
}
protected function getTranslationsForTranslationLoaders(
string $locale,
string $group,
string $namespace = null
): array {
return collect(config('translation-loader.translation_loaders'))
->map(function (string $className) {
return app($className);
})
->mapWithKeys(function (TranslationLoader $translationLoader) use ($locale, $group, $namespace) {
return $translationLoader->loadTranslations($locale, $group, $namespace);
})
->toArray();
}
}
Arguments
Closure(TranslationLoader $translationLoader) {#137 …4}
/var/www/html/admin_html/vendor/spatie/laravel-translation-loader/src/TranslationLoaderManager.php
class TranslationLoaderManager extends FileLoader
{
/**
* Load the messages for the given locale.
*
* @param string $locale
* @param string $group
* @param string $namespace
*
* @return array
*/
public function load($locale, $group, $namespace = null): array
{
$fileTranslations = parent::load($locale, $group, $namespace);
if (! is_null($namespace) && $namespace !== '*') {
return $fileTranslations;
}
$loaderTranslations = $this->getTranslationsForTranslationLoaders($locale, $group, $namespace);
return array_replace_recursive($fileTranslations, $loaderTranslations);
}
protected function getTranslationsForTranslationLoaders(
string $locale,
string $group,
string $namespace = null
): array {
return collect(config('translation-loader.translation_loaders'))
->map(function (string $className) {
return app($className);
})
->mapWithKeys(function (TranslationLoader $translationLoader) use ($locale, $group, $namespace) {
return $translationLoader->loadTranslations($locale, $group, $namespace);
})
->toArray();
}
}
Arguments
/var/www/html/admin_html/vendor/laravel/framework/src/Illuminate/Translation/Translator.php
}
/**
* Load the specified language group.
*
* @param string $namespace
* @param string $group
* @param string $locale
* @return void
*/
public function load($namespace, $group, $locale)
{
if ($this->isLoaded($namespace, $group, $locale)) {
return;
}
// The loader is responsible for returning the array of language lines for the
// given namespace, group, and locale. We'll set the lines in this array of
// lines that have already been loaded so that we can easily access them.
$lines = $this->loader->load($locale, $group, $namespace);
$this->loaded[$namespace][$group][$locale] = $lines;
}
/**
* Determine if the given group has been loaded.
*
* @param string $namespace
* @param string $group
* @param string $locale
* @return bool
*/
protected function isLoaded($namespace, $group, $locale)
{
return isset($this->loaded[$namespace][$group][$locale]);
}
/**
* Add a new namespace to the loader.
*
Arguments
/var/www/html/admin_html/vendor/laravel/framework/src/Illuminate/Translation/Translator.php
* @return string
*/
protected function localeForChoice($locale)
{
return $locale ?: $this->locale ?: $this->fallback;
}
/**
* Retrieve a language line out the loaded array.
*
* @param string $namespace
* @param string $group
* @param string $locale
* @param string $item
* @param array $replace
* @return string|array|null
*/
protected function getLine($namespace, $group, $locale, $item, array $replace)
{
$this->load($namespace, $group, $locale);
$line = Arr::get($this->loaded[$namespace][$group][$locale], $item);
if (is_string($line)) {
return $this->makeReplacements($line, $replace);
} elseif (is_array($line) && count($line) > 0) {
foreach ($line as $key => $value) {
$line[$key] = $this->makeReplacements($value, $replace);
}
return $line;
}
}
/**
* Make the place-holder replacements on a line.
*
* @param string $line
* @param array $replace
* @return string
Arguments
/var/www/html/admin_html/vendor/laravel/framework/src/Illuminate/Translation/Translator.php
*
* @param string $key
* @param array $replace
* @param string|null $locale
* @param bool $fallback
* @return string|array
*/
public function get($key, array $replace = [], $locale = null, $fallback = true)
{
[$namespace, $group, $item] = $this->parseKey($key);
// Here we will get the locale that should be used for the language line. If one
// was not passed, we will use the default locales which was given to us when
// the translator was instantiated. Then, we can load the lines and return.
$locales = $fallback ? $this->localeArray($locale)
: [$locale ?: $this->locale];
foreach ($locales as $locale) {
if (! is_null($line = $this->getLine(
$namespace, $group, $locale, $item, $replace
))) {
break;
}
}
// If the line doesn't exist, we will return back the key which was requested as
// that will be quick to spot in the UI if language keys are wrong or missing
// from the application's language files. Otherwise we can return the line.
if (isset($line)) {
return $line;
}
return $key;
}
/**
* Get the translation for a given key from the JSON translation files.
*
* @param string $key
* @param array $replace
Arguments
"*"
"validation"
"us-en"
"recaptcha"
[]
/var/www/html/admin_html/vendor/laravel/framework/src/Illuminate/Translation/Translator.php
* @param string|null $locale
* @param bool $fallback
* @return bool
*/
public function has($key, $locale = null, $fallback = true)
{
return $this->get($key, [], $locale, $fallback) !== $key;
}
/**
* Get the translation for a given key.
*
* @param string $key
* @param array $replace
* @param string $locale
* @return string|array
*/
public function trans($key, array $replace = [], $locale = null)
{
return $this->get($key, $replace, $locale);
}
/**
* Get the translation for the given key.
*
* @param string $key
* @param array $replace
* @param string|null $locale
* @param bool $fallback
* @return string|array
*/
public function get($key, array $replace = [], $locale = null, $fallback = true)
{
[$namespace, $group, $item] = $this->parseKey($key);
// Here we will get the locale that should be used for the language line. If one
// was not passed, we will use the default locales which was given to us when
// the translator was instantiated. Then, we can load the lines and return.
$locales = $fallback ? $this->localeArray($locale)
: [$locale ?: $this->locale];
Arguments
"validation.recaptcha"
[]
"us-en"
/var/www/html/admin_html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php
return Carbon::today($tz);
}
}
if (! function_exists('trans')) {
/**
* Translate the given message.
*
* @param string $key
* @param array $replace
* @param string $locale
* @return \Illuminate\Contracts\Translation\Translator|string|array|null
*/
function trans($key = null, $replace = [], $locale = null)
{
if (is_null($key)) {
return app('translator');
}
return app('translator')->trans($key, $replace, $locale);
}
}
if (! function_exists('trans_choice')) {
/**
* Translates the given message based on a count.
*
* @param string $key
* @param int|array|\Countable $number
* @param array $replace
* @param string $locale
* @return string
*/
function trans_choice($key, $number, array $replace = [], $locale = null)
{
return app('translator')->transChoice($key, $number, $replace, $locale);
}
}
if (! function_exists('__')) {
Arguments
"validation.recaptcha"
[]
null
/var/www/html/admin_html/vendor/biscolab/laravel-recaptcha/src/ReCaptchaServiceProvider.php
{
$this->addValidationRule();
$this->registerRoutes();
$this->publishes([
__DIR__ . '/../config/recaptcha.php' => config_path('recaptcha.php'),
], 'config');
}
/**
* Extends Validator to include a recaptcha type
*/
public function addValidationRule()
{
Validator::extendImplicit(recaptchaRuleName(), function ($attribute, $value) {
return app('recaptcha')->validate($value);
}, trans('validation.recaptcha'));
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->mergeConfigFrom(
__DIR__ . '/../config/recaptcha.php', 'recaptcha'
);
$this->registerReCaptchaBuilder();
}
/**
* Get the services provided by the provider.
*
Arguments
/var/www/html/admin_html/vendor/biscolab/laravel-recaptcha/src/ReCaptchaServiceProvider.php
* Class ReCaptchaServiceProvider
* @package Biscolab\ReCaptcha
*/
class ReCaptchaServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
/**
*
*/
public function boot()
{
$this->addValidationRule();
$this->registerRoutes();
$this->publishes([
__DIR__ . '/../config/recaptcha.php' => config_path('recaptcha.php'),
], 'config');
}
/**
* Extends Validator to include a recaptcha type
*/
public function addValidationRule()
{
Validator::extendImplicit(recaptchaRuleName(), function ($attribute, $value) {
return app('recaptcha')->validate($value);
}, trans('validation.recaptcha'));
}
/**
/var/www/html/admin_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
/var/www/html/admin_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 => Biscolab\ReCaptcha\ReCaptchaServiceProvider {#91}
1 => "boot"
]
[]
/var/www/html/admin_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
/var/www/html/admin_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 => Biscolab\ReCaptcha\ReCaptchaServiceProvider {#91}
1 => "boot"
]
Closure() {#21 …3}
/var/www/html/admin_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 => Biscolab\ReCaptcha\ReCaptchaServiceProvider {#91}
1 => "boot"
]
[]
null
/var/www/html/admin_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 => Biscolab\ReCaptcha\ReCaptchaServiceProvider {#91}
1 => "boot"
]
/var/www/html/admin_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
Biscolab\ReCaptcha\ReCaptchaServiceProvider {#91}
[internal]
Arguments
Biscolab\ReCaptcha\ReCaptchaServiceProvider {#91}
15
/var/www/html/admin_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:31 [
0 => Illuminate\Events\EventServiceProvider {#6}
1 => Illuminate\Log\LogServiceProvider {#8}
2 => Illuminate\Routing\RoutingServiceProvider {#10}
3 => Illuminate\Auth\AuthServiceProvider {#32}
4 => Illuminate\Cookie\CookieServiceProvider {#37}
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 => BeyondCode\DumpServer\DumpServerServiceProvider {#83}
15 => Biscolab\ReCaptcha\ReCaptchaServiceProvider {#91}
16 => Fideloper\Proxy\TrustedProxyServiceProvider {#93}
17 => Illuminate\Notifications\NexmoChannelServiceProvider {#94}
18 => Illuminate\Notifications\SlackChannelServiceProvider {#97}
19 => Maatwebsite\Excel\ExcelServiceProvider {#99}
20 => Carbon\Laravel\ServiceProvider {#108}
21 => Nwidart\Modules\Providers\ConsoleServiceProvider {#112}
22 => Nwidart\Modules\Providers\ContractsServiceProvider {#114}
23 => Nwidart\Modules\LaravelModulesServiceProvider {#109}
24 => App\Providers\HelperClassServiceProvider {#110}
25 => App\Providers\AppServiceProvider {#117}
26 => App\Providers\AuthServiceProvider {#118}
27 => App\Providers\EventServiceProvider {#119}
28 => App\Providers\RouteServiceProvider {#120}
29 => Spatie\TranslationLoader\TranslationServiceProvider {#131}
30 => Illuminate\Hashing\HashServiceProvider {#154}
]
Closure($p) {#23 …4}
/var/www/html/admin_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();
}
}
/var/www/html/admin_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}
/var/www/html/admin_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"
]
/var/www/html/admin_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());
}
}
/**
/var/www/html/admin_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: "/pdf/2018/Ivoris.pdf"
#requestUri: "/pdf/2018/Ivoris.pdf"
#baseUrl: ""
#basePath: null
#method: null
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
method: "GET"
format: "html"
}
/var/www/html/admin_html/public/index.php
require __DIR__.'/../vendor/autoload.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';
$kernel = $app->make(Kernel::class);
$response = tap($kernel->handle(
$request = Request::capture()
))->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: "/pdf/2018/Ivoris.pdf"
#requestUri: "/pdf/2018/Ivoris.pdf"
#baseUrl: ""
#basePath: null
#method: null
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
method: "GET"
format: "html"
}