From 3d14e50c65b3801819e99dc48f3eead81ed41deb Mon Sep 17 00:00:00 2001 From: noor Date: Mon, 20 Mar 2023 17:00:08 +0530 Subject: [PATCH] 8114-fixes add-changes register-fix Apply fixes from StyleCI register-change --- app/Http/Controllers/Client/kb/UserController.php | 12 ++++++++++-- resources/views/auth/register.blade.php | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Client/kb/UserController.php b/app/Http/Controllers/Client/kb/UserController.php index 620a030ab..a85cd6dcd 100644 --- a/app/Http/Controllers/Client/kb/UserController.php +++ b/app/Http/Controllers/Client/kb/UserController.php @@ -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) { diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index c14cc731f..f64b12cf8 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -94,11 +94,11 @@
- +
- {!! Form::open(['action'=>'Auth\AuthController@postRegister', 'method'=>'post']) !!} + {!! Form::open(['url'=>'auth/register', 'method'=>'post']) !!}