[Review] Mỹ Phẩm Obagi Có Tốt Không? Nên Mua Sản Phẩm Nào?

Application frames (9) All frames (65) 64 Illuminate\Database\LazyLoadingViolationException /vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php526 63 Illuminate\Database\Eloquent\Model handleLazyLoadingViolation /vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php485 62 Illuminate\Database\Eloquent\Model getRelationValue /vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php440 61 Illuminate\Database\Eloquent\Model getAttribute /vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php2029 60 Illuminate\Database\Eloquent\Model __get /app/Containers/FrontEnd/UI/WEB/Controllers/Features/News/Detail.php84 59 App\Containers\FrontEnd\UI\WEB\Controllers\NewsController detail /app/Containers/FrontEnd/UI/WEB/Controllers/Features/News/CategoryWithinNews.php66 58 App\Containers\FrontEnd\UI\WEB\Controllers\NewsController categoryWithinNews /vendor/laravel/framework/src/Illuminate/Routing/Controller.php54 57 Illuminate\Routing\Controller callAction /vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php45 56 Illuminate\Routing\ControllerDispatcher dispatch /vendor/laravel/framework/src/Illuminate/Routing/Route.php262 55 Illuminate\Routing\Route runController /vendor/laravel/framework/src/Illuminate/Routing/Route.php205 54 Illuminate\Routing\Route run /vendor/laravel/framework/src/Illuminate/Routing/Router.php721 53 Illuminate\Routing\Router Illuminate\Routing\{closure} /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php128 52 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /app/Containers/BaseContainer/UI/WEB/Controllers/BaseFrontEndController.php83 51 App\Containers\BaseContainer\UI\WEB\Controllers\BaseFrontEndController App\Containers\BaseContainer\UI\WEB\Controllers\{closure} /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php149 50 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /app/Containers/Localization/Middlewares/WebLocalizationMiddleware.php36 49 App\Containers\Localization\Middlewares\WebLocalizationMiddleware handle /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167 48 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /app/Containers/BaseContainer/Middlewares/Maintenance.php32 47 App\Containers\BaseContainer\Middlewares\Maintenance handle /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167 46 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /vendor/htmlmin/htmlmin/src/Http/Middleware/MinifyMiddleware.php55 45 HTMLMin\HTMLMin\Http\Middleware\MinifyMiddleware handle /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167 44 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /app/Containers/Localization/Middlewares/LocalizationMiddleware.php34 43 App\Containers\Localization\Middlewares\LocalizationMiddleware handle /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167 42 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php50 41 Illuminate\Routing\Middleware\SubstituteBindings handle /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167 40 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php78 39 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken handle /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167 38 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php49 37 Illuminate\View\Middleware\ShareErrorsFromSession handle /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167 36 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php121 35 Illuminate\Session\Middleware\StartSession handleStatefulRequest /vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php64 34 Illuminate\Session\Middleware\StartSession handle /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167 33 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php37 32 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse handle /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167 31 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php67 30 Illuminate\Cookie\Middleware\EncryptCookies handle /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167 29 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php103 28 Illuminate\Pipeline\Pipeline then /vendor/laravel/framework/src/Illuminate/Routing/Router.php723 27 Illuminate\Routing\Router runRouteWithinStack /vendor/laravel/framework/src/Illuminate/Routing/Router.php698 26 Illuminate\Routing\Router runRoute /vendor/laravel/framework/src/Illuminate/Routing/Router.php662 25 Illuminate\Routing\Router dispatchToRoute /vendor/laravel/framework/src/Illuminate/Routing/Router.php651 24 Illuminate\Routing\Router dispatch /vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php167 23 Illuminate\Foundation\Http\Kernel Illuminate\Foundation\Http\{closure} /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php128 22 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php59 21 Barryvdh\Debugbar\Middleware\InjectDebugbar handle /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167 20 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /vendor/fruitcake/laravel-cors/src/HandleCors.php37 19 Fruitcake\Cors\HandleCors handle /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167 18 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php21 17 Illuminate\Foundation\Http\Middleware\TransformsRequest handle /vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php31 16 Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull handle /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167 15 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /vendor/fideloper/proxy/src/TrustProxies.php57 14 Fideloper\Proxy\TrustProxies handle /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167 13 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php27 12 Illuminate\Foundation\Http\Middleware\ValidatePostSize handle /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167 11 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php86 10 Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance handle /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167 9 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php21 8 Illuminate\Foundation\Http\Middleware\TransformsRequest handle /vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php40 7 Illuminate\Foundation\Http\Middleware\TrimStrings handle /app/Ship/Middlewares/Http/TrimStrings.php55 6 App\Ship\Middlewares\Http\TrimStrings handle /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167 5 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /app/Containers/Debugger/Middlewares/RequestsMonitorMiddleware.php27 4 App\Containers\Debugger\Middlewares\RequestsMonitorMiddleware handle /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167 3 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php103 2 Illuminate\Pipeline\Pipeline then /vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php142 1 Illuminate\Foundation\Http\Kernel sendRequestThroughRouter /vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php111 0 Illuminate\Foundation\Http\Kernel handle /public/index.php57 /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php (static::$relationResolvers[get_class($this)][$key] ?? null); } /** * Handle a lazy loading violation. * * @param string $key * @return mixed */ protected function handleLazyLoadingViolation($key) { if (isset(static::$lazyLoadingViolationCallback)) { return call_user_func(static::$lazyLoadingViolationCallback, $this, $key); } if (! $this->exists || $this->wasRecentlyCreated) { return; } throw new LazyLoadingViolationException($this, $key); } /** * Get a relationship value from a method. * * @param string $method * @return mixed * * @throws \LogicException */ protected function getRelationshipFromMethod($method) { $relation = $this->$method(); if (! $relation instanceof Relation) { if (is_null($relation)) { throw new LogicException(sprintf( '%s::%s must return a relationship instance, but "null" was returned. Was the "return" keyword used?', static::class, $method )); } Arguments
  1. "Attempted to lazy load [main_author] on model [App\Containers\Category\Models\Category] but lazy loading is disabled."
/www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php * Get a relationship. * * @param string $key * @return mixed */ public function getRelationValue($key) { // If the key already exists in the relationships array, it just means the // relationship has already been loaded, so we'll just return it out of // here because there is no need to query within the relations twice. if ($this->relationLoaded($key)) { return $this->relations[$key]; } if (! $this->isRelation($key)) { return; } if ($this->preventsLazyLoading) { $this->handleLazyLoadingViolation($key); } // If the "attribute" exists as a method on the model, we will just assume // it is a relationship and will load and return results from the query // and hydrate the relationship's value on the "relationships" array. return $this->getRelationshipFromMethod($key); } /** * Determine if the given key is a relationship method on the model. * * @param string $key * @return bool */ public function isRelation($key) { if ($this->hasAttributeMutator($key)) { return false; } /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php // If the attribute exists in the attribute array or has a "get" mutator we will // get the attribute's value. Otherwise, we will proceed as if the developers // are asking for a relationship's value. This covers both types of values. if (array_key_exists($key, $this->attributes) || array_key_exists($key, $this->casts) || $this->hasGetMutator($key) || $this->hasAttributeMutator($key) || $this->isClassCastable($key)) { return $this->getAttributeValue($key); } // Here we will determine if the model base class itself contains this given key // since we don't want to treat any of those methods as relationships because // they are all intended as helper methods and none of these are relations. if (method_exists(self::class, $key)) { return; } return $this->getRelationValue($key); } /** * Get a plain attribute (not a relationship). * * @param string $key * @return mixed */ public function getAttributeValue($key) { return $this->transformModelValue($key, $this->getAttributeFromArray($key)); } /** * Get an attribute from the $attributes array. * * @param string $key * @return mixed */ protected function getAttributeFromArray($key) /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php /** * Get the broadcast channel name that is associated with the given entity. * * @return string */ public function broadcastChannel() { return str_replace('\\', '.', get_class($this)).'.'.$this->getKey(); } /** * Dynamically retrieve attributes on the model. * * @param string $key * @return mixed */ public function __get($key) { return $this->getAttribute($key); } /** * Dynamically set attributes on the model. * * @param string $key * @param mixed $value * @return void */ public function __set($key, $value) { $this->setAttribute($key, $value); } /** * Determine if the given attribute exists. * * @param mixed $offset * @return bool */ /www/wwwroot/danhgiatot.vn/public_html/app/Containers/FrontEnd/UI/WEB/Controllers/Features/News/Detail.php // {{dd($news['categories'][0]['category']['desc']['name']);}} if (!empty($news['categories']) && count($news['categories']) == 1 && $news['categories'][0]['category'] === null) { $this->frontBreadcrumb($news['categories'][0]['desc']['name'], route('web_one_for_all_by_slug', ['slug' => $news['categories'][0]['desc']['slug']]).'/', true); } $news->views++; $news->timestamps = false; $news->save(); $commentStatitics = app(GetCommentStatisticByNewsAction::class)->run($news->id); $aboutSchema = []; if (!empty($news['categories'])){ foreach($news['categories'] as $cate){ $aboutSchema[] = [ '@type'=>'Thing', 'name'=>$cate->desc->name ]; if($cate->author_id){ $news->main_author = $cate->main_author; } } } $this->frontBreadcrumb($news['desc']['name'], route('web_one_for_all_by_slug', ['slug' => $news['desc']['slug']]), true); $this->dataSeo = [ 'type' => "WebSite", 'image' => ImageURL::getImageUrl($news->image, 'news', 'social'), 'title' => @$news->desc->meta_title ? @$news->desc->meta_title : $news->desc->name, 'description' => @$news->desc->meta_description ? @$news->desc->meta_description : (@$news->desc->short_description ? $news->desc->short_description : StringLib::limit(html_entity_decode(strip_tags($news->desc->description)), 160)), // 'keyword' => explode(',', trim(@$news->desc->meta_keyword)), 'extend' => [ '@type'=>'WebSite', 'url' => route('web_home_page').'/', "alternateName" => env('APP_DOMAIN'), "potentialAction" => [ "@type" => "SearchAction", "target" => [ 'type' => 'EntryPoint', 'urlTemplate' => route('web_product_search_page') . "?q={search_term_string}" ], /www/wwwroot/danhgiatot.vn/public_html/app/Containers/FrontEnd/UI/WEB/Controllers/Features/News/CategoryWithinNews.php return response()->redirectTo(route('web_home_page')); } } } $numItems = count($category['parents']); // if ($numItems > 1) { // if ($request->parent != 'kinh-nghiem') { // return response()->redirectTo(route('web_home_page')); // } // if (empty($request->parent)) { // return response()->redirectTo(route('web_home_page')); // // } // // } if (empty($category['current'])) { return $this->detail($slug); } if (\Auth::guard('admin')->check()) { $adminUrl = route('admin_category_edit_page', ['id' => $category['current']['category_id']]); } // $this->frontBreadcrumb('Tin tức', route('web_news_index_page') . '/', true); #,'id'=>$cate['category_id'] $i = 0; $isSub2 = false; foreach ($category['parents'] as $item) { if($item['parent_id'] > 0){ $isSub2 = true; } $this->frontBreadcrumb($item['desc']['name'], route('web_one_for_all_by_slug', ['slug' => $item['desc']['slug']]), (++$i === $numItems)); } $cateList = []; if (!empty($category['current'])) { $cateList[$category['current']['category_id']] = $category['current']['category_id']; /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php /** * Get the middleware assigned to the controller. * * @return array */ public function getMiddleware() { return $this->middleware; } /** * Execute an action on the controller. * * @param string $method * @param array $parameters * @return \Symfony\Component\HttpFoundation\Response */ public function callAction($method, $parameters) { return $this->{$method}(...array_values($parameters)); } /** * Handle calls to missing methods on the controller. * * @param string $method * @param array $parameters * @return mixed * * @throws \BadMethodCallException */ public function __call($method, $parameters) { throw new BadMethodCallException(sprintf( 'Method %s::%s does not exist.', static::class, $method )); } } /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php { $this->container = $container; } /** * Dispatch a request to a given controller and method. * * @param \Illuminate\Routing\Route $route * @param mixed $controller * @param string $method * @return mixed */ public function dispatch(Route $route, $controller, $method) { $parameters = $this->resolveClassMethodDependencies( $route->parametersWithoutNulls(), $controller, $method ); if (method_exists($controller, 'callAction')) { return $controller->callAction($method, $parameters); } return $controller->{$method}(...array_values($parameters)); } /** * Get the middleware for the controller instance. * * @param \Illuminate\Routing\Controller $controller * @param string $method * @return array */ public function getMiddleware($controller, $method) { if (! method_exists($controller, 'getMiddleware')) { return []; } return collect($controller->getMiddleware())->reject(function ($data) use ($method) { return static::methodExcludedByOptions($method, $data['options']); /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php * Determine if the route action is a serialized Closure. * * @return bool */ protected function isSerializedClosure() { return RouteAction::containsSerializedClosure($this->action); } /** * Run the route action and return the response. * * @return mixed * * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException */ protected function runController() { return $this->controllerDispatcher()->dispatch( $this, $this->getController(), $this->getControllerMethod() ); } /** * Get the controller instance for the route. * * @return mixed */ public function getController() { if (! $this->controller) { $class = $this->parseControllerCallback()[0]; $this->controller = $this->container->make(ltrim($class, '\\')); } return $this->controller; } /** /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php * * @throws \UnexpectedValueException */ protected function parseAction($action) { return RouteAction::parse($this->uri, $action); } /** * Run the route action and return the response. * * @return mixed */ public function run() { $this->container = $this->container ?: new Container; try { if ($this->isControllerAction()) { return $this->runController(); } return $this->runCallable(); } catch (HttpResponseException $e) { return $e->getResponse(); } } /** * Checks whether the route's action is a controller. * * @return bool */ protected function isControllerAction() { return is_string($this->action['uses']) && ! $this->isSerializedClosure(); } /** * Run the route action and return the response. /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php /** * Run the given route within a Stack "onion" instance. * * @param \Illuminate\Routing\Route $route * @param \Illuminate\Http\Request $request * @return mixed */ protected function runRouteWithinStack(Route $route, Request $request) { $shouldSkipMiddleware = $this->container->bound('middleware.disable') && $this->container->make('middleware.disable') === true; $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route); return (new Pipeline($this->container)) ->send($request) ->through($middleware) ->then(function ($request) use ($route) { return $this->prepareResponse( $request, $route->run() ); }); } /** * Gather the middleware for the given route with resolved class names. * * @param \Illuminate\Routing\Route $route * @return array */ public function gatherRouteMiddleware(Route $route) { $computedMiddleware = $route->gatherMiddleware(); $excluded = collect($route->excludedMiddleware())->map(function ($name) { return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups); })->flatten()->values()->all(); $middleware = collect($computedMiddleware)->map(function ($name) { return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups); /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php * @return mixed */ public function thenReturn() { return $this->then(function ($passable) { return $passable; }); } /** * Get the final piece of the Closure onion. * * @param \Closure $destination * @return \Closure */ protected function prepareDestination(Closure $destination) { return function ($passable) use ($destination) { try { return $destination($passable); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; } /** * Get a Closure that represents a slice of the application onion. * * @return \Closure */ protected function carry() { return function ($stack, $pipe) { return function ($passable) use ($stack, $pipe) { try { if (is_callable($pipe)) { // If the pipe is a callable, then we will call it directly, but otherwise we // will resolve the pipes out of the dependency container and call it with // the appropriate method and arguments, returning the results back out. /www/wwwroot/danhgiatot.vn/public_html/app/Containers/BaseContainer/UI/WEB/Controllers/BaseFrontEndController.php 'settings' => $this->settings, 'menus' => $menus, 'currentLang' => $this->currentLang->short_code ?? app()->getLocale() ]); $this->isMobile = FunctionLib::isMobile($this->settings); // với các trường hợp sử dụng session tại constructor $this->middleware(function ($request, $next) { $this->user = auth()->guard(config('auth.guard_for.frontend'))->user(); CartInitEvent::dispatch(); $this->cart = !StringLib::startsWith(Route::currentRouteName(), 'web_checkout') ? app(GetContentCartAction::class)->currentLang($this->currentLang)->setIdentify(isset($this->user->id) ? $this->user->id : null)->instance()->refreshCart()->pureContent()->run() : []; $this->dataPassByMiddleware = [ 'cart' => $this->cart ]; return $next($request); }); } public function returnView(string $container, $view = null, $data = [], $mergeData = [],$render = false) { $viewPath = $container . '::' . ($this->isMobile ? config('frontend-container.mobile_alias') : config('frontend-container.desktop_alias')) . '.' . $view; $view = view($viewPath, $data, array_merge($this->dataPassByMiddleware, $this->dataPassToView, $mergeData))->withShortcodes(); if($render) { return $view->render(); } return $view; } protected function seoSetting($data = []) { if (empty($data)) { /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php return $this->handleException($passable, $e); } }; } /** * Get a Closure that represents a slice of the application onion. * * @return \Closure */ protected function carry() { return function ($stack, $pipe) { return function ($passable) use ($stack, $pipe) { try { if (is_callable($pipe)) { // If the pipe is a callable, then we will call it directly, but otherwise we // will resolve the pipes out of the dependency container and call it with // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); /www/wwwroot/danhgiatot.vn/public_html/app/Containers/Localization/Middlewares/WebLocalizationMiddleware.php /** * @param \Illuminate\Http\Request $request * @param \Closure $next * * @return mixed */ public function handle(Request $request, Closure $next) { // find and validate the lang on that request //$lang = $this->validateLanguage($this->findLanguage($request)); $lang = app(CheckSegmentLanguageAction::class)->run(); // dump($lang); if($lang) { Cookie::queue(FunctionLib::getLanguageKey(), $lang, 60 * 24 * 365); app()->setLocale($lang); } return $next($request); } } /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /** * Parse full pipe string to get name and parameters. * * @param string $pipe * @return array */ protected function parsePipeString($pipe) { [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []); /www/wwwroot/danhgiatot.vn/public_html/app/Containers/BaseContainer/Middlewares/Maintenance.php use App\Containers\Localization\Actions\GetCurrentLangAction; use App\Containers\Settings\Actions\GetAllSettingsAction; use Closure; use Illuminate\Http\Request; class Maintenance { protected $settings = []; public function handle(Request $request, Closure $next) { $currentLang = app(GetCurrentLangAction::class)->run(); $this->settings = app(GetAllSettingsAction::class)->run('Array', true); if (isset($this->settings['website_' . $currentLang->language_id]['down_for_constructions']) && $this->settings['website_' . $currentLang->language_id]['down_for_constructions']) { return redirect()->to(route('maintenance')); } return $next($request); } } /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /** * Parse full pipe string to get name and parameters. * * @param string $pipe * @return array */ protected function parsePipeString($pipe) { [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []); /www/wwwroot/danhgiatot.vn/public_html/vendor/htmlmin/htmlmin/src/Http/Middleware/MinifyMiddleware.php * @param \HTMLMin\HTMLMin\Minifiers\HtmlMinifier $html * * @return void */ public function __construct(HtmlMinifier $html) { $this->html = $html; } /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * * @return mixed */ public function handle($request, Closure $next) { $response = $next($request); if ($this->isAResponseObject($response) && $this->isAnHtmlResponse($response)) { $output = $response->getContent(); $minified = $this->html->render($output); $response->setContent($minified); } return $response; } /** * Check if the response is a usable response class. * * @param mixed $response * * @return bool */ protected function isAResponseObject($response) { return is_object($response) && $response instanceof Response; /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /** * Parse full pipe string to get name and parameters. * * @param string $pipe * @return array */ protected function parsePipeString($pipe) { [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []); /www/wwwroot/danhgiatot.vn/public_html/app/Containers/Localization/Middlewares/LocalizationMiddleware.php class LocalizationMiddleware extends Middleware { /** * @param \Illuminate\Http\Request $request * @param \Closure $next * * @return mixed */ public function handle(Request $request, Closure $next) { // find and validate the lang on that request //$lang = $this->validateLanguage($this->findLanguage($request)); $lang = app()->getLocale(); // set the local language App::setLocale($lang); // get the response after the request is done $response = $next($request); // set Content Languages header in the response $response->headers->set('Content-Language', $lang); // return the response return $response; } /** * @param $request_languages * * @return string * @throws UnsupportedLanguageException */ private function validateLanguage($request_languages) { /* * be sure to check $lang of the format "de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4" * this means: * 1) give me de-DE if it is available /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /** * Parse full pipe string to get name and parameters. * * @param string $pipe * @return array */ protected function parsePipeString($pipe) { [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []); /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { try { $this->router->substituteBindings($route = $request->route()); $this->router->substituteImplicitBindings($route); } catch (ModelNotFoundException $exception) { if ($route->getMissing()) { return $route->getMissing()($request, $exception); } throw $exception; } return $next($request); } } /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /** * Parse full pipe string to get name and parameters. * * @param string $pipe * @return array */ protected function parsePipeString($pipe) { [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []); /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php } /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed * * @throws \Illuminate\Session\TokenMismatchException */ public function handle($request, Closure $next) { if ( $this->isReading($request) || $this->runningUnitTests() || $this->inExceptArray($request) || $this->tokensMatch($request) ) { return tap($next($request), function ($response) use ($request) { if ($this->shouldAddXsrfTokenCookie()) { $this->addCookieToResponse($request, $response); } }); } throw new TokenMismatchException('CSRF token mismatch.'); } /** * Determine if the HTTP request uses a ‘read’ verb. * * @param \Illuminate\Http\Request $request * @return bool */ protected function isReading($request) { return in_array($request->method(), ['HEAD', 'GET', 'OPTIONS']); } /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /** * Parse full pipe string to get name and parameters. * * @param string $pipe * @return array */ protected function parsePipeString($pipe) { [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []); /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { // If the current session has an "errors" variable bound to it, we will share // its value with all view instances so the views can easily access errors // without having to bind. An empty bag is set when there aren't errors. $this->view->share( 'errors', $request->session()->get('errors') ?: new ViewErrorBag ); // Putting the errors in the view for every view allows the developer to just // assume that some errors are always available, which is convenient since // they don't have to continually run checks for the presence of errors. return $next($request); } } /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /** * Parse full pipe string to get name and parameters. * * @param string $pipe * @return array */ protected function parsePipeString($pipe) { [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []); /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php /** * Handle the given request within session state. * * @param \Illuminate\Http\Request $request * @param \Illuminate\Contracts\Session\Session $session * @param \Closure $next * @return mixed */ protected function handleStatefulRequest(Request $request, $session, Closure $next) { // If a session driver has been configured, we will need to start the session here // so that the data is ready for an application. Note that the Laravel sessions // do not make use of PHP "native" sessions in any way since they are crappy. $request->setLaravelSession( $this->startSession($request, $session) ); $this->collectGarbage($session); $response = $next($request); $this->storeCurrentUrl($request, $session); $this->addCookieToResponse($response, $session); // Again, if the session has been configured we will need to close out the session // so that the attributes may be persisted to some storage medium. We will also // add the session identifier cookie to the application response headers now. $this->saveSession($request); return $response; } /** * Start the session for the given request. * * @param \Illuminate\Http\Request $request * @param \Illuminate\Contracts\Session\Session $session * @return \Illuminate\Contracts\Session\Session */ /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { if (! $this->sessionConfigured()) { return $next($request); } $session = $this->getSession($request); if ($this->manager->shouldBlock() || ($request->route() instanceof Route && $request->route()->locksFor())) { return $this->handleRequestWhileBlocking($request, $session, $next); } return $this->handleStatefulRequest($request, $session, $next); } /** * Handle the given request within session state. * * @param \Illuminate\Http\Request $request * @param \Illuminate\Contracts\Session\Session $session * @param \Closure $next * @return mixed */ protected function handleRequestWhileBlocking(Request $request, $session, Closure $next) { if (! $request->route() instanceof Route) { return; } $lockFor = $request->route() && $request->route()->locksFor() ? $request->route()->locksFor() : 10; /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /** * Parse full pipe string to get name and parameters. * * @param string $pipe * @return array */ protected function parsePipeString($pipe) { [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []); /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php * Create a new CookieQueue instance. * * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookies * @return void */ public function __construct(CookieJar $cookies) { $this->cookies = $cookies; } /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $response = $next($request); foreach ($this->cookies->getQueuedCookies() as $cookie) { $response->headers->setCookie($cookie); } return $response; } } /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /** * Parse full pipe string to get name and parameters. * * @param string $pipe * @return array */ protected function parsePipeString($pipe) { [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []); /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php * Disable encryption for the given cookie name(s). * * @param string|array $name * @return void */ public function disableFor($name) { $this->except = array_merge($this->except, (array) $name); } /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return \Symfony\Component\HttpFoundation\Response */ public function handle($request, Closure $next) { return $this->encrypt($next($this->decrypt($request))); } /** * Decrypt the cookies on the request. * * @param \Symfony\Component\HttpFoundation\Request $request * @return \Symfony\Component\HttpFoundation\Request */ protected function decrypt(Request $request) { foreach ($request->cookies as $key => $cookie) { if ($this->isDisabled($key) || is_array($cookie)) { continue; } try { $value = $this->decryptCookie($key, $cookie); $hasValidPrefix = strpos($value, CookieValuePrefix::create($key, $this->encrypter->getKey())) === 0; /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /** * Parse full pipe string to get name and parameters. * * @param string $pipe * @return array */ protected function parsePipeString($pipe) { [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []); /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php public function via($method) { $this->method = $method; return $this; } /** * Run the pipeline with a final destination callback. * * @param \Closure $destination * @return mixed */ public function then(Closure $destination) { $pipeline = array_reduce( array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination) ); return $pipeline($this->passable); } /** * Run the pipeline and return the result. * * @return mixed */ public function thenReturn() { return $this->then(function ($passable) { return $passable; }); } /** * Get the final piece of the Closure onion. * * @param \Closure $destination * @return \Closure */ /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php * * @param \Illuminate\Routing\Route $route * @param \Illuminate\Http\Request $request * @return mixed */ protected function runRouteWithinStack(Route $route, Request $request) { $shouldSkipMiddleware = $this->container->bound('middleware.disable') && $this->container->make('middleware.disable') === true; $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route); return (new Pipeline($this->container)) ->send($request) ->through($middleware) ->then(function ($request) use ($route) { return $this->prepareResponse( $request, $route->run() ); }); } /** * Gather the middleware for the given route with resolved class names. * * @param \Illuminate\Routing\Route $route * @return array */ public function gatherRouteMiddleware(Route $route) { $computedMiddleware = $route->gatherMiddleware(); $excluded = collect($route->excludedMiddleware())->map(function ($name) { return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups); })->flatten()->values()->all(); $middleware = collect($computedMiddleware)->map(function ($name) { return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups); })->flatten()->reject(function ($name) use ($excluded) { if (empty($excluded)) { /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php return $route; } /** * Return the response for the given route. * * @param \Illuminate\Http\Request $request * @param \Illuminate\Routing\Route $route * @return \Symfony\Component\HttpFoundation\Response */ protected function runRoute(Request $request, Route $route) { $request->setRouteResolver(function () use ($route) { return $route; }); $this->events->dispatch(new RouteMatched($route, $request)); return $this->prepareResponse($request, $this->runRouteWithinStack($route, $request) ); } /** * Run the given route within a Stack "onion" instance. * * @param \Illuminate\Routing\Route $route * @param \Illuminate\Http\Request $request * @return mixed */ protected function runRouteWithinStack(Route $route, Request $request) { $shouldSkipMiddleware = $this->container->bound('middleware.disable') && $this->container->make('middleware.disable') === true; $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route); return (new Pipeline($this->container)) ->send($request) ->through($middleware) /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php * * @param \Illuminate\Http\Request $request * @return \Symfony\Component\HttpFoundation\Response */ public function dispatch(Request $request) { $this->currentRequest = $request; return $this->dispatchToRoute($request); } /** * Dispatch the request to a route and return the response. * * @param \Illuminate\Http\Request $request * @return \Symfony\Component\HttpFoundation\Response */ public function dispatchToRoute(Request $request) { return $this->runRoute($request, $this->findRoute($request)); } /** * Find the route matching a given request. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Routing\Route */ protected function findRoute($request) { $this->current = $route = $this->routes->match($request); $route->setContainer($this->container); $this->container->instance(Route::class, $route); return $route; } /** /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php * @return \Symfony\Component\HttpFoundation\Response */ public function respondWithRoute($name) { $route = tap($this->routes->getByName($name))->bind($this->currentRequest); return $this->runRoute($this->currentRequest, $route); } /** * Dispatch the request to the application. * * @param \Illuminate\Http\Request $request * @return \Symfony\Component\HttpFoundation\Response */ public function dispatch(Request $request) { $this->currentRequest = $request; return $this->dispatchToRoute($request); } /** * Dispatch the request to a route and return the response. * * @param \Illuminate\Http\Request $request * @return \Symfony\Component\HttpFoundation\Response */ public function dispatchToRoute(Request $request) { return $this->runRoute($request, $this->findRoute($request)); } /** * Find the route matching a given request. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Routing\Route */ protected function findRoute($request) /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php * @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. * * @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Response $response * @return void */ public function terminate($request, $response) { $this->terminateMiddleware($request, $response); $this->app->terminate(); } /** * Call the terminate method on any terminable middleware. * /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php * @return mixed */ public function thenReturn() { return $this->then(function ($passable) { return $passable; }); } /** * Get the final piece of the Closure onion. * * @param \Closure $destination * @return \Closure */ protected function prepareDestination(Closure $destination) { return function ($passable) use ($destination) { try { return $destination($passable); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; } /** * Get a Closure that represents a slice of the application onion. * * @return \Closure */ protected function carry() { return function ($stack, $pipe) { return function ($passable) use ($stack, $pipe) { try { if (is_callable($pipe)) { // If the pipe is a callable, then we will call it directly, but otherwise we // will resolve the pipes out of the dependency container and call it with // the appropriate method and arguments, returning the results back out. /www/wwwroot/danhgiatot.vn/public_html/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php * @param LaravelDebugbar $debugbar */ public function __construct(Container $container, LaravelDebugbar $debugbar) { $this->container = $container; $this->debugbar = $debugbar; $this->except = config('debugbar.except') ?: []; } /** * Handle an incoming request. * * @param Request $request * @param Closure $next * @return mixed */ public function handle($request, Closure $next) { if (!$this->debugbar->isEnabled() || $this->inExceptArray($request)) { return $next($request); } $this->debugbar->boot(); try { /** @var \Illuminate\Http\Response $response */ $response = $next($request); } catch (Throwable $e) { $response = $this->handleException($request, $e); } // Modify the response to add the Debugbar $this->debugbar->modifyResponse($request, $response); return $response; } /** * Handle the given exception. * /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /** * Parse full pipe string to get name and parameters. * * @param string $pipe * @return array */ protected function parsePipeString($pipe) { [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []); /www/wwwroot/danhgiatot.vn/public_html/vendor/fruitcake/laravel-cors/src/HandleCors.php protected $container; public function __construct(CorsService $cors, Container $container) { $this->cors = $cors; $this->container = $container; } /** * Handle an incoming request. Based on Asm89\Stack\Cors by asm89 * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return Response */ public function handle($request, Closure $next) { // Check if we're dealing with CORS and if we should handle it if (! $this->shouldRun($request)) { return $next($request); } // For Preflight, return the Preflight response if ($this->cors->isPreflightRequest($request)) { return $this->cors->handlePreflightRequest($request); } // If the request is not allowed, return 403 if (! $this->cors->isActualRequestAllowed($request)) { return new Response('Not allowed in CORS policy.', 403); } // Add the headers on the Request Handled event as fallback in case of exceptions if (class_exists(RequestHandled::class) && $this->container->bound('events')) { $this->container->make('events')->listen(RequestHandled::class, function (RequestHandled $event) { $this->addHeaders($event->request, $event->response); }); } // Handle the request /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /** * Parse full pipe string to get name and parameters. * * @param string $pipe * @return array */ protected function parsePipeString($pipe) { [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []); /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php namespace Illuminate\Foundation\Http\Middleware; use Closure; use Symfony\Component\HttpFoundation\ParameterBag; class TransformsRequest { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $this->clean($request); return $next($request); } /** * Clean the request's data. * * @param \Illuminate\Http\Request $request * @return void */ protected function clean($request) { $this->cleanParameterBag($request->query); if ($request->isJson()) { $this->cleanParameterBag($request->json()); } elseif ($request->request !== $request->query) { $this->cleanParameterBag($request->request); } } /** /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php * @var array */ protected static $skipCallbacks = []; /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { foreach (static::$skipCallbacks as $callback) { if ($callback($request)) { return $next($request); } } return parent::handle($request, $next); } /** * Transform the given value. * * @param string $key * @param mixed $value * @return mixed */ protected function transform($key, $value) { return is_string($value) && $value === '' ? null : $value; } /** * Register a callback that instructs the middleware to be skipped. * * @param \Closure $callback * @return void */ /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /** * Parse full pipe string to get name and parameters. * * @param string $pipe * @return array */ protected function parsePipeString($pipe) { [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []); /www/wwwroot/danhgiatot.vn/public_html/vendor/fideloper/proxy/src/TrustProxies.php { $this->config = $config; } /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * * @throws \Symfony\Component\HttpKernel\Exception\HttpException * * @return mixed */ public function handle(Request $request, Closure $next) { $request::setTrustedProxies([], $this->getTrustedHeaderNames()); // Reset trusted proxies between requests $this->setTrustedProxyIpAddresses($request); return $next($request); } /** * Sets the trusted proxies on the request to the value of trustedproxy.proxies * * @param \Illuminate\Http\Request $request */ protected function setTrustedProxyIpAddresses(Request $request) { $trustedIps = $this->proxies ?: $this->config->get('trustedproxy.proxies'); // Trust any IP address that calls us // `**` for backwards compatibility, but is deprecated if ($trustedIps === '*' || $trustedIps === '**') { return $this->setTrustedProxyIpAddressesToTheCallingIp($request); } // Support IPs addresses separated by comma $trustedIps = is_string($trustedIps) ? array_map('trim', explode(',', $trustedIps)) : $trustedIps; /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /** * Parse full pipe string to get name and parameters. * * @param string $pipe * @return array */ protected function parsePipeString($pipe) { [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []); /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php class ValidatePostSize { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed * * @throws \Illuminate\Http\Exceptions\PostTooLargeException */ public function handle($request, Closure $next) { $max = $this->getPostMaxSize(); if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) { throw new PostTooLargeException; } return $next($request); } /** * Determine the server 'post_max_size' as bytes. * * @return int */ protected function getPostMaxSize() { if (is_numeric($postMaxSize = ini_get('post_max_size'))) { return (int) $postMaxSize; } $metric = strtoupper(substr($postMaxSize, -1)); $postMaxSize = (int) $postMaxSize; switch ($metric) { case 'K': return $postMaxSize * 1024; case 'M': /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /** * Parse full pipe string to get name and parameters. * * @param string $pipe * @return array */ protected function parsePipeString($pipe) { [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []); /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php } } if (isset($data['template'])) { return response( $data['template'], $data['status'] ?? 503, $this->getHeaders($data) ); } throw new HttpException( $data['status'] ?? 503, 'Service Unavailable', null, $this->getHeaders($data) ); } return $next($request); } /** * Determine if the incoming request has a maintenance mode bypass cookie. * * @param \Illuminate\Http\Request $request * @param array $data * @return bool */ protected function hasValidBypassCookie($request, array $data) { return isset($data['secret']) && $request->cookie('laravel_maintenance') && MaintenanceModeBypassCookie::isValid( $request->cookie('laravel_maintenance'), $data['secret'] ); } /** /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /** * Parse full pipe string to get name and parameters. * * @param string $pipe * @return array */ protected function parsePipeString($pipe) { [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []); /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php namespace Illuminate\Foundation\Http\Middleware; use Closure; use Symfony\Component\HttpFoundation\ParameterBag; class TransformsRequest { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $this->clean($request); return $next($request); } /** * Clean the request's data. * * @param \Illuminate\Http\Request $request * @return void */ protected function clean($request) { $this->cleanParameterBag($request->query); if ($request->isJson()) { $this->cleanParameterBag($request->json()); } elseif ($request->request !== $request->query) { $this->cleanParameterBag($request->request); } } /** /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php protected $except = [ // ]; /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { foreach (static::$skipCallbacks as $callback) { if ($callback($request)) { return $next($request); } } return parent::handle($request, $next); } /** * Transform the given value. * * @param string $key * @param mixed $value * @return mixed */ protected function transform($key, $value) { if (in_array($key, $this->except, true)) { return $value; } return is_string($value) ? trim($value) : $value; } /** * Register a callback that instructs the middleware to be skipped. /www/wwwroot/danhgiatot.vn/public_html/app/Ship/Middlewares/Http/TrimStrings.php $input = trim($input); $allowScript = $this->allowScriptForInputName(); if (!in_array($key, $allowScript)) { $input = $this->strip_tags_attributes($input, $this->allow_tags); } }); } else { array_walk_recursive($input, function (&$input) { $input = trim($input); $input = strip_tags($input); $input = str_replace("&#032;", " ", $input); $input = str_replace(chr(0xCA), "", $input); //Remove sneaky spaces $input = str_replace(array("<!--", "-->", "/<script/i", ">", "<", '"', "/\\\$/", "/\r/", "!", "'", "=", "+"), array("", "", "&#60;script", "&gt;", "&lt;", "&quot;", "&#036;", "", "&#33;", "&#39;", "", " "), $input); $input = preg_replace("/\\\(?!&amp;#|\?#)/", "&#092;", $input); }); } $request->merge($input); return parent::handle($request, $next); } function strip_tags_attributes($sSource, $aAllowedTags = array(), $aDisabledAttributes = array('onabort', 'onactivate', 'onafterprint', 'onafterupdate', 'onbeforeactivate', 'onbeforecopy', 'onbeforecut', 'onbeforedeactivate', 'onbeforeeditfocus', 'onbeforepaste', 'onbeforeprint', 'onbeforeunload', 'onbeforeupdate', 'onblur', 'onbounce', 'oncellchange', 'onchange', 'onclick', 'oncontextmenu', 'oncontrolselect', 'oncopy', 'oncut', 'ondataavaible', 'ondatasetchanged', 'ondatasetcomplete', 'ondblclick', 'ondeactivate', 'ondrag', 'ondragdrop', 'ondragend', 'ondragenter', 'ondragleave', 'ondragover', 'ondragstart', 'ondrop', 'onerror', 'onerrorupdate', 'onfilterupdate', 'onfinish', 'onfocus', 'onfocusin', 'onfocusout', 'onhelp', 'onkeydown', 'onkeypress', 'onkeyup', 'onlayoutcomplete', 'onload', 'onlosecapture', 'onmousedown', 'onmouseenter', 'onmouseleave', 'onmousemove', 'onmoveout', 'onmouseover', 'onmouseup', 'onmousewheel', 'onmove', 'onmoveend', 'onmovestart', 'onpaste', 'onpropertychange', 'onreadystatechange', 'onreset', 'onresize', 'onresizeend', 'onresizestart', 'onrowexit', 'onrowsdelete', 'onrowsinserted', 'onscroll', 'onselect', 'onselectionchange', 'onselectstart', 'onstart', 'onstop', 'onsubmit', 'onunload')) { if (empty($aDisabledAttributes)) return strip_tags($sSource, implode('', $aAllowedTags)); $str = strip_tags($sSource, implode('', $aAllowedTags)); FunctionLib::set('aDisabledAttributes', $aDisabledAttributes); return preg_replace_callback( '/<(.*?)>/i', function ($matches) { $aDisabledAttributes = FunctionLib::get('aDisabledAttributes', []); if (!empty($aDisabledAttributes)) { foreach ($matches as $match) { return preg_replace( [ //'/javascript:[^\"\']*/i', '/(' . implode('|', $aDisabledAttributes) . ')[ \\t\\n]*=[ \\t\\n]*[\"\'][^\"\']*[\"\']/i', '/\s+/' ], /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /** * Parse full pipe string to get name and parameters. * * @param string $pipe * @return array */ protected function parsePipeString($pipe) { [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []); /www/wwwroot/danhgiatot.vn/public_html/app/Containers/Debugger/Middlewares/RequestsMonitorMiddleware.php use Closure; use Illuminate\Http\Request; /** * Class RequestsMonitorMiddleware * * @author Mahmoud Zalt <[email protected]> */ class RequestsMonitorMiddleware extends Middleware { /** * @param \Illuminate\Http\Request $request * @param \Closure $next * * @return mixed */ public function handle(Request $request, Closure $next) { $response = $next($request); $output = new Output($request, $response); $output->newRequest(); $output->spaceLine(); $output->header("REQUEST INFO"); $output->endpoint(); $output->version(); $output->ip(); $output->format(); $output->spaceLine(); $output->header("USER INFO"); $output->userInfo(); $output->spaceLine(); $output->header("REQUEST DATA"); $output->requestData(); $output->spaceLine(); /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); } elseif (! is_object($pipe)) { [$name, $parameters] = $this->parsePipeString($pipe); // If the pipe is a string we will parse the string and resolve the class out // of the dependency injection container. We can then build a callable and // execute the pipe function giving in the parameters that are required. $pipe = $this->getContainer()->make($name); $parameters = array_merge([$passable, $stack], $parameters); } else { // If the pipe is already an object we'll just make a callable and pass it to // the pipe as-is. There is no need to do any extra parsing and formatting // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; } /** * Parse full pipe string to get name and parameters. * * @param string $pipe * @return array */ protected function parsePipeString($pipe) { [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []); /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php public function via($method) { $this->method = $method; return $this; } /** * Run the pipeline with a final destination callback. * * @param \Closure $destination * @return mixed */ public function then(Closure $destination) { $pipeline = array_reduce( array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination) ); return $pipeline($this->passable); } /** * Run the pipeline and return the result. * * @return mixed */ public function thenReturn() { return $this->then(function ($passable) { return $passable; }); } /** * Get the final piece of the Closure onion. * * @param \Closure $destination * @return \Closure */ /www/wwwroot/danhgiatot.vn/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php } /** * 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()); } } /** * Get the route dispatcher callback. * * @return \Closure */ protected function dispatchToRouter() /www/wwwroot/danhgiatot.vn/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) /www/wwwroot/danhgiatot.vn/public_html/public/index.php */ $app = require_once __DIR__.'/../bootstrap/app.php'; /* |-------------------------------------------------------------------------- | Run The Application |-------------------------------------------------------------------------- | | Once we have the application, we can handle the incoming request | through the kernel, and send the associated response back to | the client's browser allowing them to enjoy the creative | and wonderful application we have prepared for them. | */ $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); $response = $kernel->handle( $request = Illuminate\Http\Request::capture() ); $response->send(); $kernel->terminate($request, $response);

Environment & details:

GET Data empty POST Data empty Files empty Cookies empty Session empty Server/Request Data
Key Value
USER "***"
HOME "*********"
HTTP_CF_VISITOR "******************"
HTTP_CF_CONNECTING_IP "**************"
HTTP_USER_AGENT "*****************************************************************************************************"
HTTP_X_FORWARDED_PROTO "*****"
HTTP_CF_IPCOUNTRY "**"
HTTP_ACCEPT_ENCODING "********"
HTTP_CDN_LOOP "*******************"
HTTP_ACCEPT "***"
HTTP_X_FORWARDED_FOR "**************"
HTTP_CF_RAY "********************"
HTTP_HOST "*************"
PATH_INFO ""
REDIRECT_STATUS "***"
SERVER_NAME "*************"
SERVER_PORT "***"
SERVER_ADDR "************"
REMOTE_PORT "*****"
REMOTE_ADDR "**************"
SERVER_SOFTWARE "************"
GATEWAY_INTERFACE "*******"
HTTPS "**"
REQUEST_SCHEME "*****"
SERVER_PROTOCOL "********"
DOCUMENT_ROOT "*********************************************"
DOCUMENT_URI "**********"
REQUEST_URI "**************"
SCRIPT_NAME "**********"
CONTENT_LENGTH ""
CONTENT_TYPE ""
REQUEST_METHOD "***"
QUERY_STRING ""
SCRIPT_FILENAME "*******************************************************"
FCGI_ROLE "*********"
PHP_SELF "**********"
REQUEST_TIME_FLOAT "***"
REQUEST_TIME "***"
APP_KEY "***************************************************"
APP_DEBUG "****"
API_DEBUG "*****"
REQUESTS_DEBUG "*****"
QUERIES_DEBUG "*****"
DEBUGBAR_ENABLED "*****"
TEST_RESPONSE_LOGGER_ENABLED "*****"
APP_LOG_LEVEL "*****"
LOG_CHANNEL "*****"
APP_NAME "*************"
APP_DOMAIN "*************"
APP_URL "*********************"
ADMIN_URL "***************************"
API_URL "*************************"
API_PREFIX "*"
APP_HTTPS "****"
ADMIN_SUBDOMAIN "*****"
USING_SUBDOMAIN_FOR_API "*****"
USING_LOCALE_SEGMENT "****"
HASH_ID "****"
HASH_ID_KEY "***********"
HASH_ID_LENGTH "**"
CACHE_DRIVER "****"
BROADCAST_DRIVER "***"
FILESYSTEM_DRIVER "*****"
APP_ACTION_CACHE "****"
ACTION_CACHE_TIME "*"
TASK_CACHE_TIME "*"
SESSION_DRIVER "*****"
SESSION_COOKIE "*******"
SESSION_DOMAIN "*************"
SESSION_LIFETIME "*****"
DB_CONNECTION "*****"
DB_HOST "*********"
DB_PORT "****"
DB_DATABASE "*************"
DB_USERNAME "*************"
DB_PASSWORD "****************"
REDIS_HOST "*********"
REDIS_PORT "****"
REDIS_PASSWORD ""
REDIS_DATABASE "*************"
QUEUE_CONNECTION "****"
QUEUE_HOST "*********"
QUEUE_DEFAULT "*******"
QUEUE_RETRY_AFTER "**"
MAIL_MAILER "***"
MAIL_HOST "****************"
MAIL_PORT "****"
MAIL_USERNAME "****"
MAIL_PASSWORD "****"
MAIL_ENCRYPTION "****"
MAIL_FROM_ADDRESS "****"
MAIL_FROM_NAME "*************"
AWS_ACCESS_KEY_ID ""
AWS_SECRET_ACCESS_KEY ""
AWS_DEFAULT_REGION "*********"
AWS_BUCKET ""
PUSHER_APP_ID ""
PUSHER_APP_KEY ""
PUSHER_APP_SECRET ""
PUSHER_APP_CLUSTER "***"
MIX_PUSHER_APP_KEY ""
MIX_PUSHER_APP_CLUSTER "***"
SRC_PATH "***"
ROOT_NAMESPACE "****"
PAGINATION_LIMIT_DEFAULT "**"
PAGINATION_SKIP "*****"
API_REQUEST_APPLY_REQUEST_CRITERIA "****"
API_TOKEN_EXPIRES "*****"
API_REFRESH_TOKEN_EXPIRES "*****"
API_ENABLE_IMPLICIT_GRANT "****"
API_RATE_LIMIT_ENABLED "****"
API_RATE_LIMIT_ATTEMPTS "**"
API_RATE_LIMIT_EXPIRES "*"
ELOQUENT_QUERY_CACHE "*****"
ELOQUENT_QUERY_CACHE_TIME "**"
STRIPE_KEY ""
STRIPE_SECRET ""
PAYPAL_ID ""
PAYPAL_SECRET ""
AUTH_FACEBOOK_CLIENT_ID ""
AUTH_FACEBOOK_CLIENT_SECRET ""
AUTH_FACEBOOK_CLIENT_REDIRECT "**************************************************"
AUTH_TWITTER_CLIENT_ID ""
AUTH_TWITTER_CLIENT_SECRET ""
AUTH_TWITTER_CLIENT_REDIRECT ""
AUTH_GOOGLE_CLIENT_ID ""
AUTH_GOOGLE_CLIENT_SECRET ""
AUTH_GOOGLE_CLIENT_REDIRECT ""
USER_NAMESPACE "***************************"
CUSTOMER_NAMESPACE "*******************************"
FACEBOOK_OWNER "************************"
NAME_OWNER "*******"
CLIENT_WEB_ADMIN_ID "**"
CLIENT_WEB_ADMIN_SECRET "****************************************"
CLIENT_MOBILE_ADMIN_ID ""
CLIENT_MOBILE_ADMIN_SECRET ""
CLIENT_WEB_FRONTEND_ID "**"
CLIENT_WEB_FRONTEND_SECRET "****************************************"
Environment Variables
Key Value
APP_KEY "***************************************************"
APP_DEBUG "****"
API_DEBUG "*****"
REQUESTS_DEBUG "*****"
QUERIES_DEBUG "*****"
DEBUGBAR_ENABLED "*****"
TEST_RESPONSE_LOGGER_ENABLED "*****"
APP_LOG_LEVEL "*****"
LOG_CHANNEL "*****"
APP_NAME "*************"
APP_DOMAIN "*************"
APP_URL "*********************"
ADMIN_URL "***************************"
API_URL "*************************"
API_PREFIX "*"
APP_HTTPS "****"
ADMIN_SUBDOMAIN "*****"
USING_SUBDOMAIN_FOR_API "*****"
USING_LOCALE_SEGMENT "****"
HASH_ID "****"
HASH_ID_KEY "***********"
HASH_ID_LENGTH "**"
CACHE_DRIVER "****"
BROADCAST_DRIVER "***"
FILESYSTEM_DRIVER "*****"
APP_ACTION_CACHE "****"
ACTION_CACHE_TIME "*"
TASK_CACHE_TIME "*"
SESSION_DRIVER "*****"
SESSION_COOKIE "*******"
SESSION_DOMAIN "*************"
SESSION_LIFETIME "*****"
DB_CONNECTION "*****"
DB_HOST "*********"
DB_PORT "****"
DB_DATABASE "*************"
DB_USERNAME "*************"
DB_PASSWORD "****************"
REDIS_HOST "*********"
REDIS_PORT "****"
REDIS_PASSWORD ""
REDIS_DATABASE "*************"
QUEUE_CONNECTION "****"
QUEUE_HOST "*********"
QUEUE_DEFAULT "*******"
QUEUE_RETRY_AFTER "**"
MAIL_MAILER "***"
MAIL_HOST "****************"
MAIL_PORT "****"
MAIL_USERNAME "****"
MAIL_PASSWORD "****"
MAIL_ENCRYPTION "****"
MAIL_FROM_ADDRESS "****"
MAIL_FROM_NAME "*************"
AWS_ACCESS_KEY_ID ""
AWS_SECRET_ACCESS_KEY ""
AWS_DEFAULT_REGION "*********"
AWS_BUCKET ""
PUSHER_APP_ID ""
PUSHER_APP_KEY ""
PUSHER_APP_SECRET ""
PUSHER_APP_CLUSTER "***"
MIX_PUSHER_APP_KEY ""
MIX_PUSHER_APP_CLUSTER "***"
SRC_PATH "***"
ROOT_NAMESPACE "****"
PAGINATION_LIMIT_DEFAULT "**"
PAGINATION_SKIP "*****"
API_REQUEST_APPLY_REQUEST_CRITERIA "****"
API_TOKEN_EXPIRES "*****"
API_REFRESH_TOKEN_EXPIRES "*****"
API_ENABLE_IMPLICIT_GRANT "****"
API_RATE_LIMIT_ENABLED "****"
API_RATE_LIMIT_ATTEMPTS "**"
API_RATE_LIMIT_EXPIRES "*"
ELOQUENT_QUERY_CACHE "*****"
ELOQUENT_QUERY_CACHE_TIME "**"
STRIPE_KEY ""
STRIPE_SECRET ""
PAYPAL_ID ""
PAYPAL_SECRET ""
AUTH_FACEBOOK_CLIENT_ID ""
AUTH_FACEBOOK_CLIENT_SECRET ""
AUTH_FACEBOOK_CLIENT_REDIRECT "**************************************************"
AUTH_TWITTER_CLIENT_ID ""
AUTH_TWITTER_CLIENT_SECRET ""
AUTH_TWITTER_CLIENT_REDIRECT ""
AUTH_GOOGLE_CLIENT_ID ""
AUTH_GOOGLE_CLIENT_SECRET ""
AUTH_GOOGLE_CLIENT_REDIRECT ""
USER_NAMESPACE "***************************"
CUSTOMER_NAMESPACE "*******************************"
FACEBOOK_OWNER "************************"
NAME_OWNER "*******"
CLIENT_WEB_ADMIN_ID "**"
CLIENT_WEB_ADMIN_SECRET "****************************************"
CLIENT_MOBILE_ADMIN_ID ""
CLIENT_MOBILE_ADMIN_SECRET ""
CLIENT_WEB_FRONTEND_ID "**"
CLIENT_WEB_FRONTEND_SECRET "****************************************"
Registered Handlers 0. Whoops\Handler\PrettyPageHandler

Từ khóa » Tìm Hiểu Về Mỹ Phẩm Obagi