/home/phugiathp/domains/thachnhadam.com/public_html/app/functions/module-function.php
function getBreadCrumbCategoryProduct($dataCategory){
$data=array();
$breadcrumb='<a href="'.url('/').'">Trang chủ</a>';
getRecursiveCategoryProduct((int)@$dataCategory['parent_id'],$data);
$data[]=$dataCategory;
if(count($data) > 0){
foreach ($data as $key => $value) {
$id=$value['id'];
$fullname=$value['fullname'];
$alias=$value['alias'];
$parent_id=$value['parent_id'];
$permalink=route('frontend.index.index',[$alias]);
$breadcrumb .='<a href="'.$permalink.'">'.$fullname.'</a>';
}
}
return $breadcrumb;
}
function getRecursiveCategoryArticle($parent_id,&$arrCategory){
$data=CategoryArticleModel::find((int)@$parent_id);
if(count($data)>0){
$data=$data->toArray();
$arrCategory[]=$data;
getRecursiveCategoryArticle((int)@$data['parent_id'],$arrCategory);
}
}
function getBreadCrumbCategoryArticle($dataCategory){
$data=array();
$breadcrumb='<a href="'.url('/').'">Trang chủ</a>';
getRecursiveCategoryArticle((int)@$dataCategory['parent_id'],$data);
$data[]=$dataCategory;
if(count($data) > 0){
foreach ($data as $key => $value) {
$id=$value['id'];
$fullname=$value['fullname'];
$alias=$value['alias'];
$parent_id=$value['parent_id'];
$permalink=route('frontend.index.index',[$alias]);
$breadcrumb .='<a href="'.$permalink.'">'.$fullname.'</a>';
}
}
Arguments
"count(): Parameter must be an array or an object that implements Countable (View: /home/phugiathp/domains/thachnhadam.com/public_html/resources/views/frontend/category-article.blade.php) (View: /home/phugiathp/domains/thachnhadam.com/public_html/resources/views/frontend/category-article.blade.php)"
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Exception $e) {
$this->handleViewException($e, $obLevel);
} catch (Throwable $e) {
$this->handleViewException(new FatalThrowableError($e), $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws \Exception
*/
protected function handleViewException(Exception $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
Arguments
ErrorException {#1347
#message: "count(): Parameter must be an array or an object that implements Countable (View: /home/phugiathp/domains/thachnhadam.com/public_html/resources/views/frontend/category-article.blade.php)"
#code: 0
#file: "/home/phugiathp/domains/thachnhadam.com/public_html/app/functions/module-function.php"
#line: 227
-previous: ErrorException {#1328
#message: "count(): Parameter must be an array or an object that implements Countable"
#code: 0
#file: "/home/phugiathp/domains/thachnhadam.com/public_html/app/functions/module-function.php"
#line: 227
#severity: E_WARNING
}
#severity: E_ERROR
}
1
/home/phugiathp/domains/thachnhadam.com/public_html/app/functions/module-function.php
function getBreadCrumbCategoryProduct($dataCategory){
$data=array();
$breadcrumb='<a href="'.url('/').'">Trang chủ</a>';
getRecursiveCategoryProduct((int)@$dataCategory['parent_id'],$data);
$data[]=$dataCategory;
if(count($data) > 0){
foreach ($data as $key => $value) {
$id=$value['id'];
$fullname=$value['fullname'];
$alias=$value['alias'];
$parent_id=$value['parent_id'];
$permalink=route('frontend.index.index',[$alias]);
$breadcrumb .='<a href="'.$permalink.'">'.$fullname.'</a>';
}
}
return $breadcrumb;
}
function getRecursiveCategoryArticle($parent_id,&$arrCategory){
$data=CategoryArticleModel::find((int)@$parent_id);
if(count($data)>0){
$data=$data->toArray();
$arrCategory[]=$data;
getRecursiveCategoryArticle((int)@$data['parent_id'],$arrCategory);
}
}
function getBreadCrumbCategoryArticle($dataCategory){
$data=array();
$breadcrumb='<a href="'.url('/').'">Trang chủ</a>';
getRecursiveCategoryArticle((int)@$dataCategory['parent_id'],$data);
$data[]=$dataCategory;
if(count($data) > 0){
foreach ($data as $key => $value) {
$id=$value['id'];
$fullname=$value['fullname'];
$alias=$value['alias'];
$parent_id=$value['parent_id'];
$permalink=route('frontend.index.index',[$alias]);
$breadcrumb .='<a href="'.$permalink.'">'.$fullname.'</a>';
}
}
Arguments
"count(): Parameter must be an array or an object that implements Countable (View: /home/phugiathp/domains/thachnhadam.com/public_html/resources/views/frontend/category-article.blade.php)"
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Exception $e) {
$this->handleViewException($e, $obLevel);
} catch (Throwable $e) {
$this->handleViewException(new FatalThrowableError($e), $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws \Exception
*/
protected function handleViewException(Exception $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
Arguments
ErrorException {#1328
#message: "count(): Parameter must be an array or an object that implements Countable"
#code: 0
#file: "/home/phugiathp/domains/thachnhadam.com/public_html/app/functions/module-function.php"
#line: 227
#severity: E_WARNING
}
3
/home/phugiathp/domains/thachnhadam.com/public_html/app/functions/module-function.php
function getBreadCrumbCategoryProduct($dataCategory){
$data=array();
$breadcrumb='<a href="'.url('/').'">Trang chủ</a>';
getRecursiveCategoryProduct((int)@$dataCategory['parent_id'],$data);
$data[]=$dataCategory;
if(count($data) > 0){
foreach ($data as $key => $value) {
$id=$value['id'];
$fullname=$value['fullname'];
$alias=$value['alias'];
$parent_id=$value['parent_id'];
$permalink=route('frontend.index.index',[$alias]);
$breadcrumb .='<a href="'.$permalink.'">'.$fullname.'</a>';
}
}
return $breadcrumb;
}
function getRecursiveCategoryArticle($parent_id,&$arrCategory){
$data=CategoryArticleModel::find((int)@$parent_id);
if(count($data)>0){
$data=$data->toArray();
$arrCategory[]=$data;
getRecursiveCategoryArticle((int)@$data['parent_id'],$arrCategory);
}
}
function getBreadCrumbCategoryArticle($dataCategory){
$data=array();
$breadcrumb='<a href="'.url('/').'">Trang chủ</a>';
getRecursiveCategoryArticle((int)@$dataCategory['parent_id'],$data);
$data[]=$dataCategory;
if(count($data) > 0){
foreach ($data as $key => $value) {
$id=$value['id'];
$fullname=$value['fullname'];
$alias=$value['alias'];
$parent_id=$value['parent_id'];
$permalink=route('frontend.index.index',[$alias]);
$breadcrumb .='<a href="'.$permalink.'">'.$fullname.'</a>';
}
}
Arguments
"count(): Parameter must be an array or an object that implements Countable"
/home/phugiathp/domains/thachnhadam.com/public_html/app/functions/module-function.php
function getBreadCrumbCategoryProduct($dataCategory){
$data=array();
$breadcrumb='<a href="'.url('/').'">Trang chủ</a>';
getRecursiveCategoryProduct((int)@$dataCategory['parent_id'],$data);
$data[]=$dataCategory;
if(count($data) > 0){
foreach ($data as $key => $value) {
$id=$value['id'];
$fullname=$value['fullname'];
$alias=$value['alias'];
$parent_id=$value['parent_id'];
$permalink=route('frontend.index.index',[$alias]);
$breadcrumb .='<a href="'.$permalink.'">'.$fullname.'</a>';
}
}
return $breadcrumb;
}
function getRecursiveCategoryArticle($parent_id,&$arrCategory){
$data=CategoryArticleModel::find((int)@$parent_id);
if(count($data)>0){
$data=$data->toArray();
$arrCategory[]=$data;
getRecursiveCategoryArticle((int)@$data['parent_id'],$arrCategory);
}
}
function getBreadCrumbCategoryArticle($dataCategory){
$data=array();
$breadcrumb='<a href="'.url('/').'">Trang chủ</a>';
getRecursiveCategoryArticle((int)@$dataCategory['parent_id'],$data);
$data[]=$dataCategory;
if(count($data) > 0){
foreach ($data as $key => $value) {
$id=$value['id'];
$fullname=$value['fullname'];
$alias=$value['alias'];
$parent_id=$value['parent_id'];
$permalink=route('frontend.index.index',[$alias]);
$breadcrumb .='<a href="'.$permalink.'">'.$fullname.'</a>';
}
}
Arguments
2
"count(): Parameter must be an array or an object that implements Countable"
"/home/phugiathp/domains/thachnhadam.com/public_html/app/functions/module-function.php"
227
array:3 [
"parent_id" => 0
"arrCategory" => & []
"data" => null
]
/home/phugiathp/domains/thachnhadam.com/public_html/app/functions/module-function.php
$alias=$value['alias'];
$parent_id=$value['parent_id'];
$permalink=route('frontend.index.index',[$alias]);
$breadcrumb .='<a href="'.$permalink.'">'.$fullname.'</a>';
}
}
return $breadcrumb;
}
function getRecursiveCategoryArticle($parent_id,&$arrCategory){
$data=CategoryArticleModel::find((int)@$parent_id);
if(count($data)>0){
$data=$data->toArray();
$arrCategory[]=$data;
getRecursiveCategoryArticle((int)@$data['parent_id'],$arrCategory);
}
}
function getBreadCrumbCategoryArticle($dataCategory){
$data=array();
$breadcrumb='<a href="'.url('/').'">Trang chủ</a>';
getRecursiveCategoryArticle((int)@$dataCategory['parent_id'],$data);
$data[]=$dataCategory;
if(count($data) > 0){
foreach ($data as $key => $value) {
$id=$value['id'];
$fullname=$value['fullname'];
$alias=$value['alias'];
$parent_id=$value['parent_id'];
$permalink=route('frontend.index.index',[$alias]);
$breadcrumb .='<a href="'.$permalink.'">'.$fullname.'</a>';
}
}
return $breadcrumb;
}
function getRecursiveMenu($alias,&$arrMenu){
$query=DB::table('menu')
->join('menu_type','menu.menu_type_id', '=' ,'menu_type.id');
$query->where('menu_type.theme_location','main-menu');
$query->where('menu.alias',$alias);
$query->select('menu.id','menu.fullname','menu.alias','menu.parent_id');
$data=$query->get()->toArray();
Arguments
/home/phugiathp/domains/thachnhadam.com/public_html/storage/framework/views/32369443417dd4b08982436fb84b2b7c8689542a.php
<form method="post" class="frm margin-top-10" name="frm">
<input type="hidden" name="filter_page" value="1">
<?php echo e(csrf_field()); ?>
<?php
$breadcrumb= getBreadCrumbCategoryArticle($category);
?>
<div class="breadcrumb-title">
<?php echo $breadcrumb; ?>
</div>
<h1 style="display: none;"><?php echo @$category['fullname']; ?></h1>
<h2 style="display: none;"><?php echo @$meta_description; ?></h2>
<div class="row">
<?php
if(count($items) > 0){
$k=1;
foreach ($items as $key => $value) {
$id=$value['id'];
$alias=$value['alias'];
$fullname=$value['fullname'];
$permalink=route('frontend.index.index',[$alias]) ;
$image=get_article_thumbnail($value['image']) ;
$intro=substr($value['intro'],0,200).'...' ;
$count_view=(int)@$value['count_view'];
$count_view_text=number_format($count_view,0,",",".");
?>
<div class="box-row margin-top-10">
<div class="col-sm-4 no-padding-left"><div class="box-img"><center><figure><a href="<?php echo $permalink; ?>"><img src="<?php echo $image; ?>" /></a></figure></center></div></div>
<div class="col-sm-8 no-padding-left">
<h3 class="box-title"><a href="<?php echo $permalink; ?>"><?php echo $fullname; ?></a></h3>
<div class="margin-top-5">
<div class="view-post-count">
<i class="fa fa-eye" aria-hidden="true"></i><span class="margin-left-5"><?php echo $count_view_text; ?> lượt xem </span>
</div>
</div>
<div class="margin-top-5 box-intro"><?php echo $intro; ?></div>
<div class="box-readmore margin-top-10"><a href="<?php echo $permalink; ?>">Xem chi tiết</a></div>
</div>
<div class="clr"></div>
</div>
<?php
Arguments
array:11 [
"id" => 4
"fullname" => "Tin tức thị trường"
"meta_keyword" => "Tin tức"
"meta_description" => "metadescription Tin tức"
"alias" => "tin-tuc-thi-truong"
"parent_id" => 0
"image" => "259db2b839be6f4c91ab7e17ccaa726d12grande-q1z6l7gf40rukoyw859e.png"
"sort_order" => 1
"status" => 1
"created_at" => "2017-12-18 02:17:10"
"updated_at" => "2021-12-29 09:01:12"
]
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
/**
* Get the evaluated contents of the view at the given path.
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Exception $e) {
$this->handleViewException($e, $obLevel);
} catch (Throwable $e) {
$this->handleViewException(new FatalThrowableError($e), $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws \Exception
*/
protected function handleViewException(Exception $e, $obLevel)
{
Arguments
"/home/phugiathp/domains/thachnhadam.com/public_html/storage/framework/views/32369443417dd4b08982436fb84b2b7c8689542a.php"
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php
* @param array $data
* @return string
*/
public function get($path, array $data = [])
{
$this->lastCompiled[] = $path;
// If this given view has expired, which means it has simply been edited since
// it was last compiled, we will re-compile the views so we can evaluate a
// fresh copy of the view. We'll pass the compiler the path of the view.
if ($this->compiler->isExpired($path)) {
$this->compiler->compile($path);
}
$compiled = $this->compiler->getCompiledPath($path);
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($compiled, $data);
array_pop($this->lastCompiled);
return $results;
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws \Exception
*/
protected function handleViewException(Exception $e, $obLevel)
{
$e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
parent::handleViewException($e, $obLevel);
Arguments
"/home/phugiathp/domains/thachnhadam.com/public_html/storage/framework/views/32369443417dd4b08982436fb84b2b7c8689542a.php"
array:29 [
"__env" => Factory {#112}
"app" => Application {#4}
"errors" => ViewErrorBag {#624}
"obLevel" => 1
"component" => "category-article"
"alias" => "tin-tuc-thi-truong"
"title" => "Tin tức thị trường"
"meta_keyword" => "Tin tức"
"meta_description" => "metadescription Tin tức"
"item" => []
"items" => array:5 [
0 => array:6 [
"id" => 13
"alias" => "co-ngot-stevia-chat-ngot"
"fullname" => "Cỏ ngọt Stevia – “chất ngọt”"
"image" => "stevia-extracts-rebaudioside-a-97-500x500-bhmksjdtfzc8vxuwq024.png"
"intro" => ""
"count_view" => 1712
]
1 => array:6 [
"id" => 12
"alias" => "chuyen-cung-cap-phu-gia-che-bien-gio-cha"
"fullname" => "Chuyên cung cấp phụ gia chế biến giò chả"
"image" => "phu-gia-gio-cha-cpkmq0ilybsd.png"
"intro" => "Chuyên cung cấp phụ gia chế biến giò chả; Phụ gia trong sản xuất giò chả Phụ gia trong chế biến giò chả"
"count_view" => 3642
]
2 => array:6 [
"id" => 11
"alias" => "cung-cap-phu-gia-che-bien-gio-cha"
"fullname" => "Cung cấp phụ gia chế biến giò chả"
"image" => "phu-gia-gio-cha-z2s5agb7oyt3.png"
"intro" => "Cung cấp phụ gia chế biến giò chả; Chuyên cung cấp phụ gia chế biến giò chả; Nhà phân phối phụ gia chế biến giò chả"
"count_view" => 3093
]
3 => array:6 [
"id" => 10
"alias" => "phu-gia-trong-che-bien-gio-cha"
"fullname" => "Phụ gia trong chế biến giò chả"
"image" => "phu-gia-gio-cha-8v5zwcpghqyl.png"
"intro" => "Phụ gia trong chế biến giò chả; Cung cấp phụ gia chế biến giò chả; Chuyên cung cấp phụ gia chế biến giò chả"
"count_view" => 3291
]
4 => array:6 [
"id" => 9
"alias" => "phu-gia-trong-san-xuat-gio-cha"
"fullname" => "Phụ gia trong sản xuất giò chả"
"image" => "phu-gia-gio-cha-g60wf72mp9j4.png"
"intro" => "Phụ gia trong sản xuất giò chả; Phụ gia trong chế biến giò chả; Cung cấp phụ gia chế biến giò chả"
"count_view" => 3349
]
]
"pagination" => PaginationModel {#655}
"layout" => "three-column"
"category" => array:11 [
"id" => 4
"fullname" => "Tin tức thị trường"
"meta_keyword" => "Tin tức"
"meta_description" => "metadescription Tin tức"
"alias" => "tin-tuc-thi-truong"
"parent_id" => 0
"image" => "259db2b839be6f4c91ab7e17ccaa726d12grande-q1z6l7gf40rukoyw859e.png"
"sort_order" => 1
"status" => 1
"created_at" => "2017-12-18 02:17:10"
"updated_at" => "2021-12-29 09:01:12"
]
"seo_alias" => "tin-tuc-thi-truong"
"setting" => array:32 [
"article_perpage" => array:3 [
"field_name" => "Số bài viết trên 1 trang"
"field_code" => "article_perpage"
"field_value" => "10"
]
"article_width" => array:3 [
"field_name" => "Độ rộng hình bài viết"
"field_code" => "article_width"
"field_value" => "400"
]
"article_height" => array:3 [
"field_name" => "Độ cao hình bài viết"
"field_code" => "article_height"
"field_value" => "250"
]
"product_perpage" => array:3 [
"field_name" => "Số sản phẩm trên 1 trang"
"field_code" => "product_perpage"
"field_value" => "32"
]
"product_width" => array:3 [
"field_name" => "Độ rộng hình sản phẩm"
"field_code" => "product_width"
"field_value" => "400"
]
"product_height" => array:3 [
"field_name" => "Độ cao hình sản phẩm"
"field_code" => "product_height"
"field_value" => "400"
]
"currency_unit" => array:3 [
"field_name" => "Đơn vị tiền tệ"
"field_code" => "currency_unit"
"field_value" => "vi_VN"
]
"merchant_id" => array:3 [
"field_name" => "MERCHANT_ID"
"field_code" => "merchant_id"
"field_value" => "36680"
]
"merchant_pass" => array:3 [
"field_name" => "MERCHANT_PASS"
"field_code" => "merchant_pass"
"field_value" => "matkhauketnoi"
]
"receiver" => array:3 [
"field_name" => "RECEIVER"
"field_code" => "receiver"
"field_value" => "demo@nganluong.vn"
]
"smtp_host" => array:3 [
"field_name" => "Smtp host"
"field_code" => "smtp_host"
"field_value" => "smtp.gmail.com"
]
"smtp_port" => array:3 [
"field_name" => "Smtp port"
"field_code" => "smtp_port"
"field_value" => "465"
]
"authentication" => array:3 [
"field_name" => "Smtp authication"
"field_code" => "authentication"
"field_value" => "1"
]
"encription" => array:3 [
"field_name" => "Encription"
"field_code" => "encription"
"field_value" => "ssl"
]
"smtp_username" => array:3 [
"field_name" => "Smtp username"
"field_code" => "smtp_username"
"field_value" => "dien.toannang@gmail.com"
]
"smtp_password" => array:3 [
"field_name" => "Smtp password"
"field_code" => "smtp_password"
"field_value" => "bjsdgetadsutdono"
]
"email_to" => array:3 [
"field_name" => "Email to"
"field_code" => "email_to"
"field_value" => "votrantoantk@gmail.com"
]
"contacted_person" => array:3 [
"field_name" => "Contact person"
"field_code" => "contacted_person"
"field_value" => "Huỳnh Thúc Vinh"
]
"address" => array:3 [
"field_name" => "Trụ sở"
"field_code" => "address"
"field_value" => "Số 166/ 26 Lê Trung Đình, P.Sơn Kỳ, Q.Tân Phú, TP.HCM"
]
"telephone" => array:3 [
"field_name" => "Hotline"
"field_code" => "telephone"
"field_value" => " 0971312877, (0961743722)"
]
"facebook_url" => array:3 [
"field_name" => "Facebook"
"field_code" => "facebook_url"
"field_value" => "https://www.facebook.com/Phụ-Gia-Thực-Phẩm-THP-629396864080442"
]
"twitter_url" => array:3 [
"field_name" => "Twitter"
"field_code" => "twitter_url"
"field_value" => "https://twitter.com/"
]
"google_plus" => array:3 [
"field_name" => "Google Plus"
"field_code" => "google_plus"
"field_value" => "https://plus.google.com/u/0/?hl=vi"
]
"youtube_url" => array:3 [
"field_name" => "Youtube"
"field_code" => "youtube_url"
"field_value" => "https://www.youtube.com/watch?v=kAcV7S3sySU"
]
"instagram_url" => array:3 [
"field_name" => "Instagram"
"field_code" => "instagram_url"
"field_value" => "http://flickr.com"
]
"pinterest_url" => array:3 [
"field_name" => "Pinterest"
"field_code" => "pinterest_url"
"field_value" => "http://daidung.vn/"
]
"map_url" => array:3 [
"field_name" => "Map"
"field_code" => "map_url"
"field_value" => "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3919.0967371779593!2d106.62852021480114!3d10.803902592302904!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x317529578b7a7555%3A0x8f34e383804dd221!2zxJDGsOG7nW5nIEzDqiBUcnVuZyDEkMOsbmgsIFTDom4gUGjDuiwgSOG7kyBDaMOtIE1pbmg!5e0!3m2!1sen!2s!4v1526955248611"
]
"opened_time" => array:3 [
"field_name" => "Giờ giao dịch"
"field_code" => "opened_time"
"field_value" => "7:00 - 22:30"
]
"skype_nvkd_1" => array:3 [
"field_name" => "Skype NVKD 1"
"field_code" => "skype_nvkd_1"
"field_value" => "sale1"
]
"email_nvkd_1" => array:3 [
"field_name" => "Email NVKD 1"
"field_code" => "email_nvkd_1"
"field_value" => "sale1@phugiathp.com"
]
"tel_nvkd_1" => array:3 [
"field_name" => "Tel NVKD 1"
"field_code" => "tel_nvkd_1"
"field_value" => "0971.312.877 0989.745.377"
]
"name_nvkd_1" => array:3 [
"field_name" => "NVKD1"
"field_code" => "name_nvkd_1"
"field_value" => "Master Sales"
]
]
"seo" => array:18 [
"id" => 1
"fullname" => "settingsystem"
"alias" => "setting-system"
"title" => "CÔNG TY TNHH XNK CÔNG NGHỆ THP"
"meta_keyword" => "CÔNG TY TNHH XNK CÔNG NGHỆ THP"
"meta_description" => "CÔNG TY TNHH XNK CÔNG NGHỆ THP"
"author" => ""
"copyright" => ""
"google_site_verification" => "nchybi3cCm3Vm8DT8D6wuq37_eRN6ra0KV-ZodhS2_k"
"google_analytics" => "UA-115473299-1"
"logo_frontend" => "logo-raecgxbm0zq1.png"
"alt_logo" => "Phu-gia-thp"
"favicon" => "logo-raecgxbm0zq1-hfoaje190dcz.png"
"setting" => "[{"field_name":"Số bài viết trên 1 trang","field_code":"article_perpage","field_value":"10"},{"field_name":"Độ rộng hình bài viết","field_code":"article_width","field_value":"400"},{"field_name":"Độ cao hình bài viết","field_code":"article_height","field_value":"250"},{"field_name":"Số sản phẩm trên 1 trang","field_code":"product_perpage","field_value":"32"},{"field_name":"Độ rộng hình sản phẩm","field_code":"product_width","field_value":"400"},{"field_name":"Độ cao hình sản phẩm","field_code":"product_height","field_value":"400"},{"field_name":"Đơn vị tiền tệ","field_code":"currency_unit","field_value":"vi_VN"},{"field_name":"MERCHANT_ID","field_code":"merchant_id","field_value":"36680"},{"field_name":"MERCHANT_PASS","field_code":"merchant_pass","field_value":"matkhauketnoi"},{"field_name":"RECEIVER","field_code":"receiver","field_value":"demo@nganluong.vn"},{"field_name":"Smtp host","field_code":"smtp_host","field_value":"smtp.gmail.com"},{"field_name":"Smtp port","field_code":"smtp_port","field_value":"465"},{"field_name":"Smtp authication","field_code":"authentication","field_value":"1"},{"field_name":"Encription","field_code":"encription","field_value":"ssl"},{"field_name":"Smtp username","field_code":"smtp_username","field_value":"dien.toannang@gmail.com"},{"field_name":"Smtp password","field_code":"smtp_password","field_value":"bjsdgetadsutdono"},{"field_name":"Email to","field_code":"email_to","field_value":"votrantoantk@gmail.com"},{"field_name":"Contact person","field_code":"contacted_person","field_value":"Huỳnh Thúc Vinh"},{"field_name":"Trụ sở","field_code":"address","field_value":"Số 166/ 26 Lê Trung Đình, P.Sơn Kỳ, Q.Tân Phú, TP.HCM"},{"field_name":"Hotline","field_code":"telephone","field_value":" 0971312877, (0961743722)"},{"field_name":"Facebook","field_code":"facebook_url","field_value":"https://www.facebook.com/Phụ-Gia-Thực-Phẩm-THP-629396864080442"},{"field_name":"Twitter","field_code":"twitter_url","field_value":"https://twitter.com/"},{"field_name":"Google Plus","field_code":"google_plus","field_value":"https://plus.google.com/u/0/?hl=vi"},{"field_name":"Youtube","field_code":"youtube_url","field_value":"https://www.youtube.com/watch?v=kAcV7S3sySU"},{"field_name":"Instagram","field_code":"instagram_url","field_value":"http://flickr.com"},{"field_name":"Pinterest","field_code":"pinterest_url","field_value":"http://daidung.vn/"},{"field_name":"Map","field_code":"map_url","field_value":"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3919.0967371779593!2d106.62852021480114!3d10.803902592302904!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x317529578b7a7555%3A0x8f34e383804dd221!2zxJDGsOG7nW5nIEzDqiBUcnVuZyDEkMOsbmgsIFTDom4gUGjDuiwgSOG7kyBDaMOtIE1pbmg!5e0!3m2!1sen!2s!4v1526955248611"},{"field_name":"Giờ giao dịch","field_code":"opened_time","field_value":"7:00 - 22:30"},{"field_name":"Skype NVKD 1","field_code":"skype_nvkd_1","field_value":"sale1"},{"field_name":"Email NVKD 1","field_code":"email_nvkd_1","field_value":"sale1@phugiathp.com"},{"field_name":"Tel NVKD 1","field_code":"tel_nvkd_1","field_value":"0971.312.877 0989.745.377"},{"field_name":"NVKD1","field_code":"name_nvkd_1","field_value":"Master Sales"}]"
"sort_order" => 1
"status" => 1
"created_at" => "2017-12-03 07:45:35"
"updated_at" => "2024-11-13 01:24:54"
]
"md_sl_source_slideshow" => array:2 [
"fullname" => "Slideshow"
"items" => array:5 [
0 => array:10 [
"id" => 2
"category_id" => 1
"caption" => "Khi trẻ cười"
"alt" => "khi trẻ cười 2"
"image" => "phugiathp-1-kdl1vr4ctg2f.jpg"
"page_url" => "cloudbeauty.vn"
"sort_order" => 1
"status" => 1
"created_at" => "2017-12-16 05:04:04"
"updated_at" => "2018-05-23 02:44:06"
]
1 => array:10 [
"id" => 14
"category_id" => 1
"caption" => "test 1"
"alt" => "test 1"
"image" => "phugiathp-2-86pzj7sx0qr3.jpg"
"page_url" => "http://magiwan.vn/"
"sort_order" => 2
"status" => 1
"created_at" => "2018-01-18 07:23:11"
"updated_at" => "2018-05-26 09:57:39"
]
2 => array:10 [
"id" => 50
"category_id" => 1
"caption" => "Banner 3"
"alt" => "banner 3"
"image" => "phugiathp-3-keczgv1rlt9a.jpg"
"page_url" => "https://vidoco.vn/"
"sort_order" => 3
"status" => 1
"created_at" => "2018-04-18 10:35:58"
"updated_at" => "2018-05-23 02:44:36"
]
3 => array:10 [
"id" => 51
"category_id" => 1
"caption" => "Banner 4"
"alt" => "banner 4"
"image" => "phugiathp-4-x2i1r8l59yj4.jpg"
"page_url" => "https://vidoco.vn/"
"sort_order" => 4
"status" => 1
"created_at" => "2018-04-18 10:36:16"
"updated_at" => "2018-05-23 02:44:52"
]
4 => array:10 [
"id" => 54
"category_id" => 1
"caption" => "Banner 5"
"alt" => "banner 5"
"image" => "phugiathp-5-ngkzp5o4lv09.jpg"
"page_url" => "http://chem.dienkim"
"sort_order" => 5
"status" => 1
"created_at" => "2018-05-02 01:57:26"
"updated_at" => "2018-05-23 02:45:06"
]
]
]
"md_sl_items" => array:5 [
0 => array:10 [
"id" => 2
"category_id" => 1
"caption" => "Khi trẻ cười"
"alt" => "khi trẻ cười 2"
"image" => "phugiathp-1-kdl1vr4ctg2f.jpg"
"page_url" => "cloudbeauty.vn"
"sort_order" => 1
"status" => 1
"created_at" => "2017-12-16 05:04:04"
"updated_at" => "2018-05-23 02:44:06"
]
1 => array:10 [
"id" => 14
"category_id" => 1
"caption" => "test 1"
"alt" => "test 1"
"image" => "phugiathp-2-86pzj7sx0qr3.jpg"
"page_url" => "http://magiwan.vn/"
"sort_order" => 2
"status" => 1
"created_at" => "2018-01-18 07:23:11"
"updated_at" => "2018-05-26 09:57:39"
]
2 => array:10 [
"id" => 50
"category_id" => 1
"caption" => "Banner 3"
"alt" => "banner 3"
"image" => "phugiathp-3-keczgv1rlt9a.jpg"
"page_url" => "https://vidoco.vn/"
"sort_order" => 3
"status" => 1
"created_at" => "2018-04-18 10:35:58"
"updated_at" => "2018-05-23 02:44:36"
]
3 => array:10 [
"id" => 51
"category_id" => 1
"caption" => "Banner 4"
"alt" => "banner 4"
"image" => "phugiathp-4-x2i1r8l59yj4.jpg"
"page_url" => "https://vidoco.vn/"
"sort_order" => 4
"status" => 1
"created_at" => "2018-04-18 10:36:16"
"updated_at" => "2018-05-23 02:44:52"
]
4 => array:10 [
"id" => 54
"category_id" => 1
"caption" => "Banner 5"
"alt" => "banner 5"
"image" => "phugiathp-5-ngkzp5o4lv09.jpg"
"page_url" => "http://chem.dienkim"
"sort_order" => 5
"status" => 1
"created_at" => "2018-05-02 01:57:26"
"updated_at" => "2018-05-23 02:45:06"
]
]
"value" => array:4 [
"id" => 236
"fullname" => "Sinh Tố Thanh Long Rồng Việt"
"alias" => "sinh-to-thanh-long-rong-viet"
"image" => "z568159466207681213d6b666b69c2f61736dedffce63b-v p z 9qfu ew .jpg"
]
"key" => 7
"md_sl_alt" => "banner 5"
"md_sl_featured_img" => "https://thachnhadam.com/upload/phugiathp-5-ngkzp5o4lv09.jpg"
"args" => array:13 [
"menu_class" => "cateprodhorizontalright"
"before_wrapper" => "<div class="cate-product-horizontal-right cate-product">"
"before_title" => "<h2>"
"after_title" => "</h2>"
"before_wrapper_ul" => "<div>"
"after_wrapper_ul" => "</div>"
"after_wrapper" => "</div>"
"link_before" => "<div><i class="fas fa-caret-right"></i></div>"
"link_after" => "<div><i class="fas fa-caret-down"></i></div>"
"theme_location" => "category-side-bar"
"menu_li_actived" => "current-menu-item"
"menu_item_has_children" => "menu-item-has-children"
"alias" => "tin-tuc-thi-truong"
]
"spmd_source" => array:8 [
0 => array:4 [
"id" => 243
"fullname" => "Bột Trà Sữa Vị Matcha Rồng Việt"
"alias" => "bot-tra-sua-vi-matcha-rong-viet"
"image" => "21- o d98 563kf m2i.png"
]
1 => array:4 [
"id" => 242
"fullname" => "Bột Trà Sữa Vị Khoai Môn Rồng Việt"
"alias" => ""
"image" => "22- n t r1 3x.png"
]
2 => array:4 [
"id" => 241
"fullname" => "Bột Trà Sữa Vị Dâu Rồng Việt"
"alias" => "bot-tra-sua-vi-dau-rong-viet"
"image" => "19-68 b fr i wcl0j5ukg.png"
]
3 => array:4 [
"id" => 240
"fullname" => "Bột Trà Sữa Socola Rồng Việt"
"alias" => "bot-tra-sua-socola-rong-viet"
"image" => "20- r27n iq 6 h .png"
]
4 => array:4 [
"id" => 239
"fullname" => "Bột Trà Sữa Truyền Thống Rồng Việt"
"alias" => "bot-tra-sua-truyen-thong-rong-viet"
"image" => "53be331c926d9071d3da1e011429263d-je xlr h f kutp w.jpg"
]
5 => array:4 [
"id" => 238
"fullname" => "Sinh Tố Bắp Rồng Việt"
"alias" => "sinh-to-bap-rong-viet"
"image" => "bap-ak0 e l2y w x1gpd.jpg"
]
6 => array:4 [
"id" => 237
"fullname" => "Sinh Tố Đá Me Rồng Việt"
"alias" => "sinh-to-da-me-rong-viet"
"image" => "photo2024-07-2310-49-13- u 7 1 k o e jd .jpg"
]
7 => array:4 [
"id" => 236
"fullname" => "Sinh Tố Thanh Long Rồng Việt"
"alias" => "sinh-to-thanh-long-rong-viet"
"image" => "z568159466207681213d6b666b69c2f61736dedffce63b-v p z 9qfu ew .jpg"
]
]
"spmd_id" => 236
"spmd_fullname" => "Sinh Tố Thanh Long Rồng Việt"
"spmd_permalink" => "https://thachnhadam.com/sinh-to-thanh-long-rong-viet.html"
"spmd_featured_img" => "https://thachnhadam.com/upload/400x400-z568159466207681213d6b666b69c2f61736dedffce63b-v p z 9qfu ew .jpg"
]
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/View/View.php
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
* @return array
*/
protected function gatherData()
{
$data = array_merge($this->factory->getShared(), $this->data);
foreach ($data as $key => $value) {
if ($value instanceof Renderable) {
$data[$key] = $value->render();
}
}
return $data;
}
Arguments
"/home/phugiathp/domains/thachnhadam.com/public_html/resources/views/frontend/category-article.blade.php"
array:29 [
"__env" => Factory {#112}
"app" => Application {#4}
"errors" => ViewErrorBag {#624}
"obLevel" => 1
"component" => "category-article"
"alias" => "tin-tuc-thi-truong"
"title" => "Tin tức thị trường"
"meta_keyword" => "Tin tức"
"meta_description" => "metadescription Tin tức"
"item" => []
"items" => array:5 [
0 => array:6 [
"id" => 13
"alias" => "co-ngot-stevia-chat-ngot"
"fullname" => "Cỏ ngọt Stevia – “chất ngọt”"
"image" => "stevia-extracts-rebaudioside-a-97-500x500-bhmksjdtfzc8vxuwq024.png"
"intro" => ""
"count_view" => 1712
]
1 => array:6 [
"id" => 12
"alias" => "chuyen-cung-cap-phu-gia-che-bien-gio-cha"
"fullname" => "Chuyên cung cấp phụ gia chế biến giò chả"
"image" => "phu-gia-gio-cha-cpkmq0ilybsd.png"
"intro" => "Chuyên cung cấp phụ gia chế biến giò chả; Phụ gia trong sản xuất giò chả Phụ gia trong chế biến giò chả"
"count_view" => 3642
]
2 => array:6 [
"id" => 11
"alias" => "cung-cap-phu-gia-che-bien-gio-cha"
"fullname" => "Cung cấp phụ gia chế biến giò chả"
"image" => "phu-gia-gio-cha-z2s5agb7oyt3.png"
"intro" => "Cung cấp phụ gia chế biến giò chả; Chuyên cung cấp phụ gia chế biến giò chả; Nhà phân phối phụ gia chế biến giò chả"
"count_view" => 3093
]
3 => array:6 [
"id" => 10
"alias" => "phu-gia-trong-che-bien-gio-cha"
"fullname" => "Phụ gia trong chế biến giò chả"
"image" => "phu-gia-gio-cha-8v5zwcpghqyl.png"
"intro" => "Phụ gia trong chế biến giò chả; Cung cấp phụ gia chế biến giò chả; Chuyên cung cấp phụ gia chế biến giò chả"
"count_view" => 3291
]
4 => array:6 [
"id" => 9
"alias" => "phu-gia-trong-san-xuat-gio-cha"
"fullname" => "Phụ gia trong sản xuất giò chả"
"image" => "phu-gia-gio-cha-g60wf72mp9j4.png"
"intro" => "Phụ gia trong sản xuất giò chả; Phụ gia trong chế biến giò chả; Cung cấp phụ gia chế biến giò chả"
"count_view" => 3349
]
]
"pagination" => PaginationModel {#655}
"layout" => "three-column"
"category" => array:11 [
"id" => 4
"fullname" => "Tin tức thị trường"
"meta_keyword" => "Tin tức"
"meta_description" => "metadescription Tin tức"
"alias" => "tin-tuc-thi-truong"
"parent_id" => 0
"image" => "259db2b839be6f4c91ab7e17ccaa726d12grande-q1z6l7gf40rukoyw859e.png"
"sort_order" => 1
"status" => 1
"created_at" => "2017-12-18 02:17:10"
"updated_at" => "2021-12-29 09:01:12"
]
"seo_alias" => "tin-tuc-thi-truong"
"setting" => array:32 [
"article_perpage" => array:3 [
"field_name" => "Số bài viết trên 1 trang"
"field_code" => "article_perpage"
"field_value" => "10"
]
"article_width" => array:3 [
"field_name" => "Độ rộng hình bài viết"
"field_code" => "article_width"
"field_value" => "400"
]
"article_height" => array:3 [
"field_name" => "Độ cao hình bài viết"
"field_code" => "article_height"
"field_value" => "250"
]
"product_perpage" => array:3 [
"field_name" => "Số sản phẩm trên 1 trang"
"field_code" => "product_perpage"
"field_value" => "32"
]
"product_width" => array:3 [
"field_name" => "Độ rộng hình sản phẩm"
"field_code" => "product_width"
"field_value" => "400"
]
"product_height" => array:3 [
"field_name" => "Độ cao hình sản phẩm"
"field_code" => "product_height"
"field_value" => "400"
]
"currency_unit" => array:3 [
"field_name" => "Đơn vị tiền tệ"
"field_code" => "currency_unit"
"field_value" => "vi_VN"
]
"merchant_id" => array:3 [
"field_name" => "MERCHANT_ID"
"field_code" => "merchant_id"
"field_value" => "36680"
]
"merchant_pass" => array:3 [
"field_name" => "MERCHANT_PASS"
"field_code" => "merchant_pass"
"field_value" => "matkhauketnoi"
]
"receiver" => array:3 [
"field_name" => "RECEIVER"
"field_code" => "receiver"
"field_value" => "demo@nganluong.vn"
]
"smtp_host" => array:3 [
"field_name" => "Smtp host"
"field_code" => "smtp_host"
"field_value" => "smtp.gmail.com"
]
"smtp_port" => array:3 [
"field_name" => "Smtp port"
"field_code" => "smtp_port"
"field_value" => "465"
]
"authentication" => array:3 [
"field_name" => "Smtp authication"
"field_code" => "authentication"
"field_value" => "1"
]
"encription" => array:3 [
"field_name" => "Encription"
"field_code" => "encription"
"field_value" => "ssl"
]
"smtp_username" => array:3 [
"field_name" => "Smtp username"
"field_code" => "smtp_username"
"field_value" => "dien.toannang@gmail.com"
]
"smtp_password" => array:3 [
"field_name" => "Smtp password"
"field_code" => "smtp_password"
"field_value" => "bjsdgetadsutdono"
]
"email_to" => array:3 [
"field_name" => "Email to"
"field_code" => "email_to"
"field_value" => "votrantoantk@gmail.com"
]
"contacted_person" => array:3 [
"field_name" => "Contact person"
"field_code" => "contacted_person"
"field_value" => "Huỳnh Thúc Vinh"
]
"address" => array:3 [
"field_name" => "Trụ sở"
"field_code" => "address"
"field_value" => "Số 166/ 26 Lê Trung Đình, P.Sơn Kỳ, Q.Tân Phú, TP.HCM"
]
"telephone" => array:3 [
"field_name" => "Hotline"
"field_code" => "telephone"
"field_value" => " 0971312877, (0961743722)"
]
"facebook_url" => array:3 [
"field_name" => "Facebook"
"field_code" => "facebook_url"
"field_value" => "https://www.facebook.com/Phụ-Gia-Thực-Phẩm-THP-629396864080442"
]
"twitter_url" => array:3 [
"field_name" => "Twitter"
"field_code" => "twitter_url"
"field_value" => "https://twitter.com/"
]
"google_plus" => array:3 [
"field_name" => "Google Plus"
"field_code" => "google_plus"
"field_value" => "https://plus.google.com/u/0/?hl=vi"
]
"youtube_url" => array:3 [
"field_name" => "Youtube"
"field_code" => "youtube_url"
"field_value" => "https://www.youtube.com/watch?v=kAcV7S3sySU"
]
"instagram_url" => array:3 [
"field_name" => "Instagram"
"field_code" => "instagram_url"
"field_value" => "http://flickr.com"
]
"pinterest_url" => array:3 [
"field_name" => "Pinterest"
"field_code" => "pinterest_url"
"field_value" => "http://daidung.vn/"
]
"map_url" => array:3 [
"field_name" => "Map"
"field_code" => "map_url"
"field_value" => "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3919.0967371779593!2d106.62852021480114!3d10.803902592302904!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x317529578b7a7555%3A0x8f34e383804dd221!2zxJDGsOG7nW5nIEzDqiBUcnVuZyDEkMOsbmgsIFTDom4gUGjDuiwgSOG7kyBDaMOtIE1pbmg!5e0!3m2!1sen!2s!4v1526955248611"
]
"opened_time" => array:3 [
"field_name" => "Giờ giao dịch"
"field_code" => "opened_time"
"field_value" => "7:00 - 22:30"
]
"skype_nvkd_1" => array:3 [
"field_name" => "Skype NVKD 1"
"field_code" => "skype_nvkd_1"
"field_value" => "sale1"
]
"email_nvkd_1" => array:3 [
"field_name" => "Email NVKD 1"
"field_code" => "email_nvkd_1"
"field_value" => "sale1@phugiathp.com"
]
"tel_nvkd_1" => array:3 [
"field_name" => "Tel NVKD 1"
"field_code" => "tel_nvkd_1"
"field_value" => "0971.312.877 0989.745.377"
]
"name_nvkd_1" => array:3 [
"field_name" => "NVKD1"
"field_code" => "name_nvkd_1"
"field_value" => "Master Sales"
]
]
"seo" => array:18 [
"id" => 1
"fullname" => "settingsystem"
"alias" => "setting-system"
"title" => "CÔNG TY TNHH XNK CÔNG NGHỆ THP"
"meta_keyword" => "CÔNG TY TNHH XNK CÔNG NGHỆ THP"
"meta_description" => "CÔNG TY TNHH XNK CÔNG NGHỆ THP"
"author" => ""
"copyright" => ""
"google_site_verification" => "nchybi3cCm3Vm8DT8D6wuq37_eRN6ra0KV-ZodhS2_k"
"google_analytics" => "UA-115473299-1"
"logo_frontend" => "logo-raecgxbm0zq1.png"
"alt_logo" => "Phu-gia-thp"
"favicon" => "logo-raecgxbm0zq1-hfoaje190dcz.png"
"setting" => "[{"field_name":"Số bài viết trên 1 trang","field_code":"article_perpage","field_value":"10"},{"field_name":"Độ rộng hình bài viết","field_code":"article_width","field_value":"400"},{"field_name":"Độ cao hình bài viết","field_code":"article_height","field_value":"250"},{"field_name":"Số sản phẩm trên 1 trang","field_code":"product_perpage","field_value":"32"},{"field_name":"Độ rộng hình sản phẩm","field_code":"product_width","field_value":"400"},{"field_name":"Độ cao hình sản phẩm","field_code":"product_height","field_value":"400"},{"field_name":"Đơn vị tiền tệ","field_code":"currency_unit","field_value":"vi_VN"},{"field_name":"MERCHANT_ID","field_code":"merchant_id","field_value":"36680"},{"field_name":"MERCHANT_PASS","field_code":"merchant_pass","field_value":"matkhauketnoi"},{"field_name":"RECEIVER","field_code":"receiver","field_value":"demo@nganluong.vn"},{"field_name":"Smtp host","field_code":"smtp_host","field_value":"smtp.gmail.com"},{"field_name":"Smtp port","field_code":"smtp_port","field_value":"465"},{"field_name":"Smtp authication","field_code":"authentication","field_value":"1"},{"field_name":"Encription","field_code":"encription","field_value":"ssl"},{"field_name":"Smtp username","field_code":"smtp_username","field_value":"dien.toannang@gmail.com"},{"field_name":"Smtp password","field_code":"smtp_password","field_value":"bjsdgetadsutdono"},{"field_name":"Email to","field_code":"email_to","field_value":"votrantoantk@gmail.com"},{"field_name":"Contact person","field_code":"contacted_person","field_value":"Huỳnh Thúc Vinh"},{"field_name":"Trụ sở","field_code":"address","field_value":"Số 166/ 26 Lê Trung Đình, P.Sơn Kỳ, Q.Tân Phú, TP.HCM"},{"field_name":"Hotline","field_code":"telephone","field_value":" 0971312877, (0961743722)"},{"field_name":"Facebook","field_code":"facebook_url","field_value":"https://www.facebook.com/Phụ-Gia-Thực-Phẩm-THP-629396864080442"},{"field_name":"Twitter","field_code":"twitter_url","field_value":"https://twitter.com/"},{"field_name":"Google Plus","field_code":"google_plus","field_value":"https://plus.google.com/u/0/?hl=vi"},{"field_name":"Youtube","field_code":"youtube_url","field_value":"https://www.youtube.com/watch?v=kAcV7S3sySU"},{"field_name":"Instagram","field_code":"instagram_url","field_value":"http://flickr.com"},{"field_name":"Pinterest","field_code":"pinterest_url","field_value":"http://daidung.vn/"},{"field_name":"Map","field_code":"map_url","field_value":"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3919.0967371779593!2d106.62852021480114!3d10.803902592302904!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x317529578b7a7555%3A0x8f34e383804dd221!2zxJDGsOG7nW5nIEzDqiBUcnVuZyDEkMOsbmgsIFTDom4gUGjDuiwgSOG7kyBDaMOtIE1pbmg!5e0!3m2!1sen!2s!4v1526955248611"},{"field_name":"Giờ giao dịch","field_code":"opened_time","field_value":"7:00 - 22:30"},{"field_name":"Skype NVKD 1","field_code":"skype_nvkd_1","field_value":"sale1"},{"field_name":"Email NVKD 1","field_code":"email_nvkd_1","field_value":"sale1@phugiathp.com"},{"field_name":"Tel NVKD 1","field_code":"tel_nvkd_1","field_value":"0971.312.877 0989.745.377"},{"field_name":"NVKD1","field_code":"name_nvkd_1","field_value":"Master Sales"}]"
"sort_order" => 1
"status" => 1
"created_at" => "2017-12-03 07:45:35"
"updated_at" => "2024-11-13 01:24:54"
]
"md_sl_source_slideshow" => array:2 [
"fullname" => "Slideshow"
"items" => array:5 [
0 => array:10 [
"id" => 2
"category_id" => 1
"caption" => "Khi trẻ cười"
"alt" => "khi trẻ cười 2"
"image" => "phugiathp-1-kdl1vr4ctg2f.jpg"
"page_url" => "cloudbeauty.vn"
"sort_order" => 1
"status" => 1
"created_at" => "2017-12-16 05:04:04"
"updated_at" => "2018-05-23 02:44:06"
]
1 => array:10 [
"id" => 14
"category_id" => 1
"caption" => "test 1"
"alt" => "test 1"
"image" => "phugiathp-2-86pzj7sx0qr3.jpg"
"page_url" => "http://magiwan.vn/"
"sort_order" => 2
"status" => 1
"created_at" => "2018-01-18 07:23:11"
"updated_at" => "2018-05-26 09:57:39"
]
2 => array:10 [
"id" => 50
"category_id" => 1
"caption" => "Banner 3"
"alt" => "banner 3"
"image" => "phugiathp-3-keczgv1rlt9a.jpg"
"page_url" => "https://vidoco.vn/"
"sort_order" => 3
"status" => 1
"created_at" => "2018-04-18 10:35:58"
"updated_at" => "2018-05-23 02:44:36"
]
3 => array:10 [
"id" => 51
"category_id" => 1
"caption" => "Banner 4"
"alt" => "banner 4"
"image" => "phugiathp-4-x2i1r8l59yj4.jpg"
"page_url" => "https://vidoco.vn/"
"sort_order" => 4
"status" => 1
"created_at" => "2018-04-18 10:36:16"
"updated_at" => "2018-05-23 02:44:52"
]
4 => array:10 [
"id" => 54
"category_id" => 1
"caption" => "Banner 5"
"alt" => "banner 5"
"image" => "phugiathp-5-ngkzp5o4lv09.jpg"
"page_url" => "http://chem.dienkim"
"sort_order" => 5
"status" => 1
"created_at" => "2018-05-02 01:57:26"
"updated_at" => "2018-05-23 02:45:06"
]
]
]
"md_sl_items" => array:5 [
0 => array:10 [
"id" => 2
"category_id" => 1
"caption" => "Khi trẻ cười"
"alt" => "khi trẻ cười 2"
"image" => "phugiathp-1-kdl1vr4ctg2f.jpg"
"page_url" => "cloudbeauty.vn"
"sort_order" => 1
"status" => 1
"created_at" => "2017-12-16 05:04:04"
"updated_at" => "2018-05-23 02:44:06"
]
1 => array:10 [
"id" => 14
"category_id" => 1
"caption" => "test 1"
"alt" => "test 1"
"image" => "phugiathp-2-86pzj7sx0qr3.jpg"
"page_url" => "http://magiwan.vn/"
"sort_order" => 2
"status" => 1
"created_at" => "2018-01-18 07:23:11"
"updated_at" => "2018-05-26 09:57:39"
]
2 => array:10 [
"id" => 50
"category_id" => 1
"caption" => "Banner 3"
"alt" => "banner 3"
"image" => "phugiathp-3-keczgv1rlt9a.jpg"
"page_url" => "https://vidoco.vn/"
"sort_order" => 3
"status" => 1
"created_at" => "2018-04-18 10:35:58"
"updated_at" => "2018-05-23 02:44:36"
]
3 => array:10 [
"id" => 51
"category_id" => 1
"caption" => "Banner 4"
"alt" => "banner 4"
"image" => "phugiathp-4-x2i1r8l59yj4.jpg"
"page_url" => "https://vidoco.vn/"
"sort_order" => 4
"status" => 1
"created_at" => "2018-04-18 10:36:16"
"updated_at" => "2018-05-23 02:44:52"
]
4 => array:10 [
"id" => 54
"category_id" => 1
"caption" => "Banner 5"
"alt" => "banner 5"
"image" => "phugiathp-5-ngkzp5o4lv09.jpg"
"page_url" => "http://chem.dienkim"
"sort_order" => 5
"status" => 1
"created_at" => "2018-05-02 01:57:26"
"updated_at" => "2018-05-23 02:45:06"
]
]
"value" => array:4 [
"id" => 236
"fullname" => "Sinh Tố Thanh Long Rồng Việt"
"alias" => "sinh-to-thanh-long-rong-viet"
"image" => "z568159466207681213d6b666b69c2f61736dedffce63b-v p z 9qfu ew .jpg"
]
"key" => 7
"md_sl_alt" => "banner 5"
"md_sl_featured_img" => "https://thachnhadam.com/upload/phugiathp-5-ngkzp5o4lv09.jpg"
"args" => array:13 [
"menu_class" => "cateprodhorizontalright"
"before_wrapper" => "<div class="cate-product-horizontal-right cate-product">"
"before_title" => "<h2>"
"after_title" => "</h2>"
"before_wrapper_ul" => "<div>"
"after_wrapper_ul" => "</div>"
"after_wrapper" => "</div>"
"link_before" => "<div><i class="fas fa-caret-right"></i></div>"
"link_after" => "<div><i class="fas fa-caret-down"></i></div>"
"theme_location" => "category-side-bar"
"menu_li_actived" => "current-menu-item"
"menu_item_has_children" => "menu-item-has-children"
"alias" => "tin-tuc-thi-truong"
]
"spmd_source" => array:8 [
0 => array:4 [
"id" => 243
"fullname" => "Bột Trà Sữa Vị Matcha Rồng Việt"
"alias" => "bot-tra-sua-vi-matcha-rong-viet"
"image" => "21- o d98 563kf m2i.png"
]
1 => array:4 [
"id" => 242
"fullname" => "Bột Trà Sữa Vị Khoai Môn Rồng Việt"
"alias" => ""
"image" => "22- n t r1 3x.png"
]
2 => array:4 [
"id" => 241
"fullname" => "Bột Trà Sữa Vị Dâu Rồng Việt"
"alias" => "bot-tra-sua-vi-dau-rong-viet"
"image" => "19-68 b fr i wcl0j5ukg.png"
]
3 => array:4 [
"id" => 240
"fullname" => "Bột Trà Sữa Socola Rồng Việt"
"alias" => "bot-tra-sua-socola-rong-viet"
"image" => "20- r27n iq 6 h .png"
]
4 => array:4 [
"id" => 239
"fullname" => "Bột Trà Sữa Truyền Thống Rồng Việt"
"alias" => "bot-tra-sua-truyen-thong-rong-viet"
"image" => "53be331c926d9071d3da1e011429263d-je xlr h f kutp w.jpg"
]
5 => array:4 [
"id" => 238
"fullname" => "Sinh Tố Bắp Rồng Việt"
"alias" => "sinh-to-bap-rong-viet"
"image" => "bap-ak0 e l2y w x1gpd.jpg"
]
6 => array:4 [
"id" => 237
"fullname" => "Sinh Tố Đá Me Rồng Việt"
"alias" => "sinh-to-da-me-rong-viet"
"image" => "photo2024-07-2310-49-13- u 7 1 k o e jd .jpg"
]
7 => array:4 [
"id" => 236
"fullname" => "Sinh Tố Thanh Long Rồng Việt"
"alias" => "sinh-to-thanh-long-rong-viet"
"image" => "z568159466207681213d6b666b69c2f61736dedffce63b-v p z 9qfu ew .jpg"
]
]
"spmd_id" => 236
"spmd_fullname" => "Sinh Tố Thanh Long Rồng Việt"
"spmd_permalink" => "https://thachnhadam.com/sinh-to-thanh-long-rong-viet.html"
"spmd_featured_img" => "https://thachnhadam.com/upload/400x400-z568159466207681213d6b666b69c2f61736dedffce63b-v p z 9qfu ew .jpg"
]
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/View/View.php
throw $e;
}
}
/**
* Get the contents of the view instance.
*
* @return string
*/
protected function renderContents()
{
// We will keep track of the amount of views being rendered so we can flush
// the section after the complete rendering operation is done. This will
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/View/View.php
$this->view = $view;
$this->path = $path;
$this->engine = $engine;
$this->factory = $factory;
$this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
}
/**
* Get the string contents of the view.
*
* @param callable|null $callback
* @return string
*
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? call_user_func($callback, $this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// another view gets rendered in the future by the application developer.
$this->factory->flushStateIfDoneRendering();
return ! is_null($response) ? $response : $contents;
} catch (Exception $e) {
$this->factory->flushState();
throw $e;
} catch (Throwable $e) {
$this->factory->flushState();
throw $e;
}
}
/home/phugiathp/domains/thachnhadam.com/public_html/storage/framework/views/ed23578852a5bc07aad7b40bcb1c6a16213cc286.php
<div class="npan">
<div class="col-xs-4"><img src="<?php echo $spmd_featured_img; ?>" /></div>
<div class="col-xs-8 no-padding-left"><a href="<?php echo $spmd_permalink; ?>"><?php echo $spmd_fullname; ?></a></div>
</div>
<?php
}
}
?>
</div>
</div>
</div>
<div class="col-lg-6">
<?php
switch ($component) {
case 'home':
?><?php echo $__env->make("frontend.home", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?><?php
break;
case "category-article":
case "articles":
?><?php echo $__env->make("frontend.category-article", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?><?php
break;
case "article":
?><?php echo $__env->make("frontend.article", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?><?php
break;
case "page":
?><?php echo $__env->make("frontend.page", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?><?php
break;
case "search-product":
case "category-product":
?><?php echo $__env->make("frontend.category-product", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?><?php
break;
case "product":
?><?php echo $__env->make("frontend.product", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?><?php
break;
case "gio-hang":
?><?php echo $__env->make("frontend.cart", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?><?php
break;
case "register":
?><?php echo $__env->make("frontend.register", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?><?php
break;
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
/**
* Get the evaluated contents of the view at the given path.
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Exception $e) {
$this->handleViewException($e, $obLevel);
} catch (Throwable $e) {
$this->handleViewException(new FatalThrowableError($e), $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws \Exception
*/
protected function handleViewException(Exception $e, $obLevel)
{
Arguments
"/home/phugiathp/domains/thachnhadam.com/public_html/storage/framework/views/ed23578852a5bc07aad7b40bcb1c6a16213cc286.php"
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php
* @param array $data
* @return string
*/
public function get($path, array $data = [])
{
$this->lastCompiled[] = $path;
// If this given view has expired, which means it has simply been edited since
// it was last compiled, we will re-compile the views so we can evaluate a
// fresh copy of the view. We'll pass the compiler the path of the view.
if ($this->compiler->isExpired($path)) {
$this->compiler->compile($path);
}
$compiled = $this->compiler->getCompiledPath($path);
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($compiled, $data);
array_pop($this->lastCompiled);
return $results;
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws \Exception
*/
protected function handleViewException(Exception $e, $obLevel)
{
$e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
parent::handleViewException($e, $obLevel);
Arguments
"/home/phugiathp/domains/thachnhadam.com/public_html/storage/framework/views/ed23578852a5bc07aad7b40bcb1c6a16213cc286.php"
array:13 [
"__env" => Factory {#112}
"app" => Application {#4}
"errors" => ViewErrorBag {#624}
"component" => "category-article"
"alias" => "tin-tuc-thi-truong"
"title" => "Tin tức thị trường"
"meta_keyword" => "Tin tức"
"meta_description" => "metadescription Tin tức"
"item" => []
"items" => array:5 [
0 => array:6 [
"id" => 13
"alias" => "co-ngot-stevia-chat-ngot"
"fullname" => "Cỏ ngọt Stevia – “chất ngọt”"
"image" => "stevia-extracts-rebaudioside-a-97-500x500-bhmksjdtfzc8vxuwq024.png"
"intro" => ""
"count_view" => 1712
]
1 => array:6 [
"id" => 12
"alias" => "chuyen-cung-cap-phu-gia-che-bien-gio-cha"
"fullname" => "Chuyên cung cấp phụ gia chế biến giò chả"
"image" => "phu-gia-gio-cha-cpkmq0ilybsd.png"
"intro" => "Chuyên cung cấp phụ gia chế biến giò chả; Phụ gia trong sản xuất giò chả Phụ gia trong chế biến giò chả"
"count_view" => 3642
]
2 => array:6 [
"id" => 11
"alias" => "cung-cap-phu-gia-che-bien-gio-cha"
"fullname" => "Cung cấp phụ gia chế biến giò chả"
"image" => "phu-gia-gio-cha-z2s5agb7oyt3.png"
"intro" => "Cung cấp phụ gia chế biến giò chả; Chuyên cung cấp phụ gia chế biến giò chả; Nhà phân phối phụ gia chế biến giò chả"
"count_view" => 3093
]
3 => array:6 [
"id" => 10
"alias" => "phu-gia-trong-che-bien-gio-cha"
"fullname" => "Phụ gia trong chế biến giò chả"
"image" => "phu-gia-gio-cha-8v5zwcpghqyl.png"
"intro" => "Phụ gia trong chế biến giò chả; Cung cấp phụ gia chế biến giò chả; Chuyên cung cấp phụ gia chế biến giò chả"
"count_view" => 3291
]
4 => array:6 [
"id" => 9
"alias" => "phu-gia-trong-san-xuat-gio-cha"
"fullname" => "Phụ gia trong sản xuất giò chả"
"image" => "phu-gia-gio-cha-g60wf72mp9j4.png"
"intro" => "Phụ gia trong sản xuất giò chả; Phụ gia trong chế biến giò chả; Cung cấp phụ gia chế biến giò chả"
"count_view" => 3349
]
]
"pagination" => PaginationModel {#655}
"layout" => "three-column"
"category" => array:11 [
"id" => 4
"fullname" => "Tin tức thị trường"
"meta_keyword" => "Tin tức"
"meta_description" => "metadescription Tin tức"
"alias" => "tin-tuc-thi-truong"
"parent_id" => 0
"image" => "259db2b839be6f4c91ab7e17ccaa726d12grande-q1z6l7gf40rukoyw859e.png"
"sort_order" => 1
"status" => 1
"created_at" => "2017-12-18 02:17:10"
"updated_at" => "2021-12-29 09:01:12"
]
]
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/View/View.php
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
* @return array
*/
protected function gatherData()
{
$data = array_merge($this->factory->getShared(), $this->data);
foreach ($data as $key => $value) {
if ($value instanceof Renderable) {
$data[$key] = $value->render();
}
}
return $data;
}
Arguments
"/home/phugiathp/domains/thachnhadam.com/public_html/resources/views/frontend/index.blade.php"
array:13 [
"__env" => Factory {#112}
"app" => Application {#4}
"errors" => ViewErrorBag {#624}
"component" => "category-article"
"alias" => "tin-tuc-thi-truong"
"title" => "Tin tức thị trường"
"meta_keyword" => "Tin tức"
"meta_description" => "metadescription Tin tức"
"item" => []
"items" => array:5 [
0 => array:6 [
"id" => 13
"alias" => "co-ngot-stevia-chat-ngot"
"fullname" => "Cỏ ngọt Stevia – “chất ngọt”"
"image" => "stevia-extracts-rebaudioside-a-97-500x500-bhmksjdtfzc8vxuwq024.png"
"intro" => ""
"count_view" => 1712
]
1 => array:6 [
"id" => 12
"alias" => "chuyen-cung-cap-phu-gia-che-bien-gio-cha"
"fullname" => "Chuyên cung cấp phụ gia chế biến giò chả"
"image" => "phu-gia-gio-cha-cpkmq0ilybsd.png"
"intro" => "Chuyên cung cấp phụ gia chế biến giò chả; Phụ gia trong sản xuất giò chả Phụ gia trong chế biến giò chả"
"count_view" => 3642
]
2 => array:6 [
"id" => 11
"alias" => "cung-cap-phu-gia-che-bien-gio-cha"
"fullname" => "Cung cấp phụ gia chế biến giò chả"
"image" => "phu-gia-gio-cha-z2s5agb7oyt3.png"
"intro" => "Cung cấp phụ gia chế biến giò chả; Chuyên cung cấp phụ gia chế biến giò chả; Nhà phân phối phụ gia chế biến giò chả"
"count_view" => 3093
]
3 => array:6 [
"id" => 10
"alias" => "phu-gia-trong-che-bien-gio-cha"
"fullname" => "Phụ gia trong chế biến giò chả"
"image" => "phu-gia-gio-cha-8v5zwcpghqyl.png"
"intro" => "Phụ gia trong chế biến giò chả; Cung cấp phụ gia chế biến giò chả; Chuyên cung cấp phụ gia chế biến giò chả"
"count_view" => 3291
]
4 => array:6 [
"id" => 9
"alias" => "phu-gia-trong-san-xuat-gio-cha"
"fullname" => "Phụ gia trong sản xuất giò chả"
"image" => "phu-gia-gio-cha-g60wf72mp9j4.png"
"intro" => "Phụ gia trong sản xuất giò chả; Phụ gia trong chế biến giò chả; Cung cấp phụ gia chế biến giò chả"
"count_view" => 3349
]
]
"pagination" => PaginationModel {#655}
"layout" => "three-column"
"category" => array:11 [
"id" => 4
"fullname" => "Tin tức thị trường"
"meta_keyword" => "Tin tức"
"meta_description" => "metadescription Tin tức"
"alias" => "tin-tuc-thi-truong"
"parent_id" => 0
"image" => "259db2b839be6f4c91ab7e17ccaa726d12grande-q1z6l7gf40rukoyw859e.png"
"sort_order" => 1
"status" => 1
"created_at" => "2017-12-18 02:17:10"
"updated_at" => "2021-12-29 09:01:12"
]
]
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/View/View.php
throw $e;
}
}
/**
* Get the contents of the view instance.
*
* @return string
*/
protected function renderContents()
{
// We will keep track of the amount of views being rendered so we can flush
// the section after the complete rendering operation is done. This will
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/View/View.php
$this->view = $view;
$this->path = $path;
$this->engine = $engine;
$this->factory = $factory;
$this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
}
/**
* Get the string contents of the view.
*
* @param callable|null $callback
* @return string
*
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? call_user_func($callback, $this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// another view gets rendered in the future by the application developer.
$this->factory->flushStateIfDoneRendering();
return ! is_null($response) ? $response : $contents;
} catch (Exception $e) {
$this->factory->flushState();
throw $e;
} catch (Throwable $e) {
$this->factory->flushState();
throw $e;
}
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Http/Response.php
* @return $this
*/
public function setContent($content)
{
$this->original = $content;
// If the content is "JSONable" we will set the appropriate header and convert
// the content to JSON. This is useful when returning something like models
// from routes that will be automatically transformed to their JSON form.
if ($this->shouldBeJson($content)) {
$this->header('Content-Type', 'application/json');
$content = $this->morphToJson($content);
}
// If this content implements the "Renderable" interface then we will call the
// render method on the object so we will avoid any "__toString" exceptions
// that might be thrown and have their errors obscured by PHP's handling.
elseif ($content instanceof Renderable) {
$content = $content->render();
}
parent::setContent($content);
return $this;
}
/**
* Determine if the given content should be turned into JSON.
*
* @param mixed $content
* @return bool
*/
protected function shouldBeJson($content)
{
return $content instanceof Arrayable ||
$content instanceof Jsonable ||
$content instanceof ArrayObject ||
$content instanceof JsonSerializable ||
is_array($content);
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/symfony/http-foundation/Response.php
504 => 'Gateway Timeout',
505 => 'HTTP Version Not Supported',
506 => 'Variant Also Negotiates', // RFC2295
507 => 'Insufficient Storage', // RFC4918
508 => 'Loop Detected', // RFC5842
510 => 'Not Extended', // RFC2774
511 => 'Network Authentication Required', // RFC6585
];
/**
* @param mixed $content The response content, see setContent()
* @param int $status The response status code
* @param array $headers An array of response headers
*
* @throws \InvalidArgumentException When the HTTP status code is not valid
*/
public function __construct($content = '', $status = 200, $headers = [])
{
$this->headers = new ResponseHeaderBag($headers);
$this->setContent($content);
$this->setStatusCode($status);
$this->setProtocolVersion('1.0');
}
/**
* Factory method for chainability.
*
* Example:
*
* return Response::create($body, 200)
* ->setSharedMaxAge(300);
*
* @param mixed $content The response content, see setContent()
* @param int $status The response status code
* @param array $headers An array of response headers
*
* @return static
*/
public static function create($content = '', $status = 200, $headers = [])
{
Arguments
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
* @param mixed $response
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
public static function toResponse($request, $response)
{
if ($response instanceof Responsable) {
$response = $response->toResponse($request);
}
if ($response instanceof PsrResponseInterface) {
$response = (new HttpFoundationFactory)->createResponse($response);
} elseif (! $response instanceof SymfonyResponse &&
($response instanceof Arrayable ||
$response instanceof Jsonable ||
$response instanceof ArrayObject ||
$response instanceof JsonSerializable ||
is_array($response))) {
$response = new JsonResponse($response);
} elseif (! $response instanceof SymfonyResponse) {
$response = new Response($response);
}
if ($response->getStatusCode() === Response::HTTP_NOT_MODIFIED) {
$response->setNotModified();
}
return $response->prepare($request);
}
/**
* Substitute the route bindings onto the route.
*
* @param \Illuminate\Routing\Route $route
* @return \Illuminate\Routing\Route
*/
public function substituteBindings($route)
{
foreach ($route->parameters() as $key => $value) {
if (isset($this->binders[$key])) {
$route->setParameter($key, $this->performBinding($key, $value, $route));
Arguments
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
* Sort the given middleware by priority.
*
* @param \Illuminate\Support\Collection $middlewares
* @return array
*/
protected function sortMiddleware(Collection $middlewares)
{
return (new SortedMiddleware($this->middlewarePriority, $middlewares))->all();
}
/**
* Create a response instance from the given value.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* @param mixed $response
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
public function prepareResponse($request, $response)
{
return static::toResponse($request, $response);
}
/**
* Static version of prepareResponse.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* @param mixed $response
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
public static function toResponse($request, $response)
{
if ($response instanceof Responsable) {
$response = $response->toResponse($request);
}
if ($response instanceof PsrResponseInterface) {
$response = (new HttpFoundationFactory)->createResponse($response);
} elseif (! $response instanceof SymfonyResponse &&
($response instanceof Arrayable ||
$response instanceof Jsonable ||
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
View {#1053}
/home/phugiathp/domains/thachnhadam.com/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)
{
$middleware = collect($route->gatherMiddleware())->map(function ($name) {
return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
})->flatten();
return $this->sortMiddleware($middleware);
}
/**
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
View {#1053}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
use Symfony\Component\Debug\Exception\FatalThrowableError;
/**
* This extended pipeline catches any exceptions that occur during each slice.
*
* The exceptions are converted to HTTP responses for proper middleware handling.
*/
class Pipeline extends BasePipeline
{
/**
* 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 (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($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 {
$slice = parent::carry();
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php
*/
public function __construct(Registrar $router)
{
$this->router = $router;
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$this->router->substituteBindings($route = $request->route());
$this->router->substituteImplicitBindings($route);
return $next($request);
}
}
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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)) {
list($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];
}
return method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#521
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#515 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#520 …}
}
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($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 {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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 $this->addCookieToResponse($request, $next($request));
}
throw new TokenMismatchException;
}
/**
* 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']);
}
/**
* Determine if the application is running unit tests.
*
* @return bool
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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)) {
list($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];
}
return method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#601
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#515 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#521 …}
$pipe: "Illuminate\Routing\Middleware\SubstituteBindings"
}
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($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 {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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);
}
}
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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)) {
list($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];
}
return method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#602
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#515 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#601 …}
$pipe: "App\Http\Middleware\VerifyCsrfToken"
}
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($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 {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$this->sessionHandled = true;
// 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.
if ($this->sessionConfigured()) {
$request->setLaravelSession(
$session = $this->startSession($request)
);
$this->collectGarbage($session);
}
$response = $next($request);
// 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.
if ($this->sessionConfigured()) {
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
}
return $response;
}
/**
* Perform any final actions for the request lifecycle.
*
* @param \Illuminate\Http\Request $request
* @param \Symfony\Component\HttpFoundation\Response $response
* @return void
*/
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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)) {
list($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];
}
return method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#603
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#515 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#602 …}
$pipe: "Illuminate\View\Middleware\ShareErrorsFromSession"
}
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($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 {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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;
}
}
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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)) {
list($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];
}
return method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#604
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#515 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#603 …}
$pipe: "Illuminate\Session\Middleware\StartSession"
}
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($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 {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php
* Disable encryption for the given cookie name(s).
*
* @param string|array $cookieName
* @return void
*/
public function disableFor($cookieName)
{
$this->except = array_merge($this->except, (array) $cookieName);
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
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)) {
continue;
}
try {
$decryptedValue = $this->decryptCookie($key, $cookie);
$value = CookieValuePrefix::getVerifiedValue($key, $decryptedValue, $this->encrypter->getKey());
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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)) {
list($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];
}
return method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#605
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#515 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#604 …}
$pipe: "Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse"
}
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($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 {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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);
}
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
return $destination($passable);
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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)
{
$middleware = collect($route->gatherMiddleware())->map(function ($name) {
return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
})->flatten();
return $this->sortMiddleware($middleware);
}
/**
* Sort the given middleware by priority.
*
Arguments
Closure {#520
class: "Illuminate\Routing\Router"
this: Router {#26 …}
parameters: {
$request: {}
}
use: {
$route: Route {#445 …}
}
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
return $route;
}
/**
* Return the response for the given route.
*
* @param Route $route
* @param Request $request
* @return mixed
*/
protected function runRoute(Request $request, Route $route)
{
$request->setRouteResolver(function () use ($route) {
return $route;
});
$this->events->dispatch(new Events\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)
Arguments
Route {#445}
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
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 mixed
*/
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);
$this->container->instance(Route::class, $route);
return $route;
}
/**
* Return the response for the given route.
*
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Route {#445}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
* @return mixed
*/
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 \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
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 mixed
*/
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)
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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.
*
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
use Symfony\Component\Debug\Exception\FatalThrowableError;
/**
* This extended pipeline catches any exceptions that occur during each slice.
*
* The exceptions are converted to HTTP responses for proper middleware handling.
*/
class Pipeline extends BasePipeline
{
/**
* 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 (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($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 {
$slice = parent::carry();
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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, Closure $next)
{
$this->setTrustedProxyHeaderNames($request);
$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)
{
$trustedIps = $this->proxies ?: $this->config->get('trustedproxy.proxies');
// We only trust specific IP addresses
if (is_array($trustedIps)) {
return $this->setTrustedProxyIpAddressesToSpecificIps($request, $trustedIps);
}
// We trust any IP address that calls us, but not proxies further
// up the forwarding chain.
// TODO: Determine if this should only trust the first IP address
// Currently it trusts the entire chain (array of IPs),
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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)) {
list($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];
}
return method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#144
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#31 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#23 …}
}
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($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 {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
* The additional attributes passed to the middleware.
*
* @var array
*/
protected $attributes = [];
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next, ...$attributes)
{
$this->attributes = $attributes;
$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());
} else {
$this->cleanParameterBag($request->request);
}
}
/**
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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)) {
list($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];
}
return method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#472
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#31 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#144 …}
$pipe: "App\Http\Middleware\TrustProxies"
}
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($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 {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
* The additional attributes passed to the middleware.
*
* @var array
*/
protected $attributes = [];
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next, ...$attributes)
{
$this->attributes = $attributes;
$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());
} else {
$this->cleanParameterBag($request->request);
}
}
/**
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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)) {
list($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];
}
return method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#492
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#31 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#472 …}
$pipe: "Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull"
}
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($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 {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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':
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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)) {
list($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];
}
return method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#493
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#31 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#492 …}
$pipe: "App\Http\Middleware\TrimStrings"
}
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($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 {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
*/
public function handle($request, Closure $next)
{
if ($this->app->isDownForMaintenance()) {
$data = json_decode(file_get_contents($this->app->storagePath().'/framework/down'), true);
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
}
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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)) {
list($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];
}
return method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#494
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#31 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#493 …}
$pipe: "Illuminate\Foundation\Http\Middleware\ValidatePostSize"
}
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($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 {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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);
}
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
return $destination($passable);
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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()
Arguments
Closure {#23
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#30 …}
parameters: {
$request: {}
}
}
/home/phugiathp/domains/thachnhadam.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
$router->middlewareGroup($key, $middleware);
}
foreach ($this->routeMiddleware as $key => $middleware) {
$router->aliasMiddleware($key, $middleware);
}
}
/**
* Handle an incoming HTTP request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Exception $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
} catch (Throwable $e) {
$this->reportException($e = new FatalThrowableError($e));
$response = $this->renderException($request, $e);
}
$this->app['events']->dispatch(
new Events\RequestHandled($request, $response)
);
return $response;
}
/**
* Send the given request through the middleware / router.
*
Arguments
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home/phugiathp/domains/thachnhadam.com/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
Request {#43
#json: null
#convertedFiles: []
#userResolver: Closure {#510
class: "Cartalyst\Sentinel\Laravel\SentinelServiceProvider"
this: SentinelServiceProvider {#83 …}
use: {
$app: Application {#4 …}
}
}
#routeResolver: Closure {#513
class: "Illuminate\Routing\Router"
this: Router {#26 …}
use: {
$route: Route {#445 …}
}
}
+attributes: ParameterBag {#45}
+request: ParameterBag {#51}
+query: ParameterBag {#51}
+server: ServerBag {#47}
+files: FileBag {#48}
+cookies: ParameterBag {#46}
+headers: HeaderBag {#49}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:4 [
0 => "text/html"
1 => "application/xhtml+xml"
2 => "application/xml"
3 => "*/*"
]
#pathInfo: "/tin-tuc-thi-truong.html"
#requestUri: "/tin-tuc-thi-truong.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#617}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}