/home/vipcs/public_html/app/Providers/AppServiceProvider.php
// set categories
$this->categories = $categories;
// stripe related
putenv('STRIPE_KEY=' . opt('STRIPE_PUBLIC_KEY'));
putenv('STRIPE_SECRET=' . opt('STRIPE_SECRET_KEY'));
putenv('APP_KEY=' . env('APP_KEY'));
putenv('APP_URL=' . env('APP_URL'));
putenv('FULL_SITE_URL=' . env('FULL_SITE_URL'));
putenv('SENDING_EMAIL=' . env('MAIL_FROM_ADDRESS'));
putenv('APP_NAME=' . env('APP_NAME'));
putenv('APP_DEBUG=' . env('APP_DEBUG'));
putenv('GLIDE_KEY=123');
// db env
putenv('DB_CONNECTION=mysql');
putenv('DB_PORT=3306');
putenv('DB_HOST=' . DATABASE_HOST);
putenv('DB_DATABASE=' . DATABASE_NAME);
putenv('DB_USERNAME=' . DATABASE_USER);
putenv('DB_PASSWORD=' . DATABASE_PASS);
// set default storage
putenv('DEFAULT_STORAGE=' . opt('default_storage', 'public'));
/******
WASABI
******/
// wassabi related
$currentDisks = $this->app->config['filesystems']['disks'];
// set wasabi settings from db
$currentDisks['wasabi']['key'] = opt('WAS_ACCESS_KEY_ID');
$currentDisks['wasabi']['secret'] = opt('WAS_SECRET_ACCESS_KEY');
$currentDisks['wasabi']['region'] = opt('WAS_DEFAULT_REGION');
$currentDisks['wasabi']['bucket'] = opt('WAS_BUCKET');
$currentDisks['wasabi']['endpoint'] = 'https://s3.'.opt('WAS_DEFAULT_REGION').'.wasabisys.com';
Arguments
"Use of undefined constant DATABASE_HOST - assumed 'DATABASE_HOST' (this will throw an Error in a future version of PHP)"
/home/vipcs/public_html/app/Providers/AppServiceProvider.php
// set categories
$this->categories = $categories;
// stripe related
putenv('STRIPE_KEY=' . opt('STRIPE_PUBLIC_KEY'));
putenv('STRIPE_SECRET=' . opt('STRIPE_SECRET_KEY'));
putenv('APP_KEY=' . env('APP_KEY'));
putenv('APP_URL=' . env('APP_URL'));
putenv('FULL_SITE_URL=' . env('FULL_SITE_URL'));
putenv('SENDING_EMAIL=' . env('MAIL_FROM_ADDRESS'));
putenv('APP_NAME=' . env('APP_NAME'));
putenv('APP_DEBUG=' . env('APP_DEBUG'));
putenv('GLIDE_KEY=123');
// db env
putenv('DB_CONNECTION=mysql');
putenv('DB_PORT=3306');
putenv('DB_HOST=' . DATABASE_HOST);
putenv('DB_DATABASE=' . DATABASE_NAME);
putenv('DB_USERNAME=' . DATABASE_USER);
putenv('DB_PASSWORD=' . DATABASE_PASS);
// set default storage
putenv('DEFAULT_STORAGE=' . opt('default_storage', 'public'));
/******
WASABI
******/
// wassabi related
$currentDisks = $this->app->config['filesystems']['disks'];
// set wasabi settings from db
$currentDisks['wasabi']['key'] = opt('WAS_ACCESS_KEY_ID');
$currentDisks['wasabi']['secret'] = opt('WAS_SECRET_ACCESS_KEY');
$currentDisks['wasabi']['region'] = opt('WAS_DEFAULT_REGION');
$currentDisks['wasabi']['bucket'] = opt('WAS_BUCKET');
$currentDisks['wasabi']['endpoint'] = 'https://s3.'.opt('WAS_DEFAULT_REGION').'.wasabisys.com';
Arguments
2
"Use of undefined constant DATABASE_HOST - assumed 'DATABASE_HOST' (this will throw an Error in a future version of PHP)"
"/home/vipcs/public_html/app/Providers/AppServiceProvider.php"
50
array:1 [
"categories" => Illuminate\Database\Eloquent\Collection {#921}
]
/home/vipcs/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/vipcs/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;
}
$name = $type->getName();
/home/vipcs/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/vipcs/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 {#2}
array:2 [
0 => App\Providers\AppServiceProvider {#150}
1 => "boot"
]
Closure() {#46 …3}
/home/vipcs/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 => App\Providers\AppServiceProvider {#150}
1 => "boot"
]
[]
null
/home/vipcs/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 => App\Providers\AppServiceProvider {#150}
1 => "boot"
]
/home/vipcs/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 mixed
*/
protected function bootProvider(ServiceProvider $provider)
{
if (method_exists($provider, 'boot')) {
return $this->call([$provider, 'boot']);
}
}
Arguments
App\Providers\AppServiceProvider {#150}
[internal]
Arguments
App\Providers\AppServiceProvider {#150}
29
/home/vipcs/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 mixed
*/
protected function bootProvider(ServiceProvider $provider)
{
if (method_exists($provider, 'boot')) {
return $this->call([$provider, 'boot']);
}
}
/**
Arguments
array:34 [
0 => Illuminate\Events\EventServiceProvider {#15}
1 => Illuminate\Log\LogServiceProvider {#17}
2 => Illuminate\Routing\RoutingServiceProvider {#19}
3 => Illuminate\Auth\AuthServiceProvider {#40}
4 => Illuminate\Cookie\CookieServiceProvider {#61}
5 => Illuminate\Database\DatabaseServiceProvider {#63}
6 => Illuminate\Encryption\EncryptionServiceProvider {#70}
7 => Illuminate\Filesystem\FilesystemServiceProvider {#73}
8 => Illuminate\Foundation\Providers\FormRequestServiceProvider {#79}
9 => Illuminate\Foundation\Providers\FoundationServiceProvider {#78}
10 => Illuminate\Notifications\NotificationServiceProvider {#83}
11 => Illuminate\Pagination\PaginationServiceProvider {#85}
12 => Illuminate\Session\SessionServiceProvider {#89}
13 => Illuminate\View\ViewServiceProvider {#93}
14 => Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider {#98}
15 => BeyondCode\Comments\CommentsServiceProvider {#109}
16 => BeyondCode\DumpServer\DumpServerServiceProvider {#110}
17 => Fideloper\Proxy\TrustedProxyServiceProvider {#118}
18 => Gliterd\BackblazeB2\BackblazeB2ServiceProvider {#119}
19 => Intervention\Image\ImageServiceProvider {#120}
20 => Laravel\Tinker\TinkerServiceProvider {#123}
21 => Livewire\LivewireServiceProvider {#126}
22 => Mews\Purifier\PurifierServiceProvider {#135}
23 => Carbon\Laravel\ServiceProvider {#141}
24 => NunoMaduro\Collision\Adapters\Laravel\CollisionServiceProvider {#142}
25 => Overtrue\LaravelFollow\FollowServiceProvider {#143}
26 => Overtrue\LaravelLike\LikeServiceProvider {#144}
27 => Srmklive\PayPal\Providers\PayPalServiceProvider {#145}
28 => UxWeb\SweetAlert\SweetAlertServiceProvider {#147}
29 => App\Providers\AppServiceProvider {#150}
30 => App\Providers\AuthServiceProvider {#160}
31 => App\Providers\EventServiceProvider {#161}
32 => App\Providers\RouteServiceProvider {#162}
33 => Illuminate\Hashing\HashServiceProvider {#1078}
]
Closure($p) {#41 …4}
/home/vipcs/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/vipcs/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/vipcs/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/vipcs/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/vipcs/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 (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 RequestHandled($request, $response)
);
return $response;
}
/**
* Send the given request through the middleware / router.
*
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: null
#userResolver: null
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#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: "/sitemap.xml"
requestUri: "/sitemap.xml"
baseUrl: ""
basePath: ""
method: "GET"
format: "html"
}
/home/vipcs/public_html/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 {#52
#json: null
#convertedFiles: null
#userResolver: null
#routeResolver: null
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#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: "/sitemap.xml"
requestUri: "/sitemap.xml"
baseUrl: ""
basePath: ""
method: "GET"
format: "html"
}