8114-fixes
add-changes register-fix Apply fixes from StyleCI register-change
This commit is contained in:
@@ -155,7 +155,11 @@ class UserController extends Controller
|
||||
$categorys = $category->get();
|
||||
// $categorys->setPath('home');
|
||||
/* direct to view with $article_id */
|
||||
return view('themes.default1.client.kb.article-list.home', compact('categorys', 'article_id'));
|
||||
$page = Relationship::where('category_id', '=', $category->id)->get();
|
||||
/* from whole attribute pick the article_id */
|
||||
$articles_id = $page->pluck('article_id');
|
||||
|
||||
return view('themes.default1.client.kb.article-list.home', compact('categorys', 'articles_id'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -290,7 +294,11 @@ class UserController extends Controller
|
||||
$categorys = $category->get();
|
||||
// $categorys->setPath('home');
|
||||
/* direct to view with $article_id */
|
||||
return view('themes.default1.client.kb.article-list.categoryList', compact('categorys', 'article_id'));
|
||||
$page = Relationship::where('category_id', '=', $category->id)->get();
|
||||
/* from whole attribute pick the article_id */
|
||||
$articles_id = $page->pluck('article_id');
|
||||
|
||||
return view('themes.default1.client.kb.article-list.categoryList', compact('categorys', 'articles_id'));
|
||||
}
|
||||
|
||||
// static function timezone($utc) {
|
||||
|
Reference in New Issue
Block a user