8114-fixes

add-changes

register-fix

Apply fixes from StyleCI

register-change
This commit is contained in:
noor
2023-03-20 17:00:08 +05:30
committed by RafficMohammed
parent 5e60d1e0bd
commit 3d14e50c65
2 changed files with 12 additions and 4 deletions

View File

@@ -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) {