From 89dc9e6ac93ba01176518d7e2fe2499c45cada8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stan=20Forto=C5=84ski?= Date: Wed, 25 Aug 2021 16:56:19 +0200 Subject: [PATCH] Hotfix --- app/Http/Controllers/Admin/UserPanelController.php | 5 ++++- resources/views/admin/categories/save.blade.php | 2 +- resources/views/admin/posts/save.blade.php | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Admin/UserPanelController.php b/app/Http/Controllers/Admin/UserPanelController.php index 6705660..59dabc9 100644 --- a/app/Http/Controllers/Admin/UserPanelController.php +++ b/app/Http/Controllers/Admin/UserPanelController.php @@ -22,7 +22,10 @@ class UserPanelController extends Controller { public function index() { - return view('admin.user-panel.index')->with('user', auth()->user()); + return view('admin.user-panel.index')->with([ + 'user' => auth()->user(), + 'content' => auth()->user()->content()->first() + ]); } /** diff --git a/resources/views/admin/categories/save.blade.php b/resources/views/admin/categories/save.blade.php index 3a6772d..990b2da 100644 --- a/resources/views/admin/categories/save.blade.php +++ b/resources/views/admin/categories/save.blade.php @@ -57,7 +57,7 @@
- {{ route('index', app()->getLocale()) }}/{{app()->getLocale()}}/categories/ + {{ route('index', app()->getLocale()) }}/categories/
@error('content.url') diff --git a/resources/views/admin/posts/save.blade.php b/resources/views/admin/posts/save.blade.php index 81167c4..1203b29 100644 --- a/resources/views/admin/posts/save.blade.php +++ b/resources/views/admin/posts/save.blade.php @@ -57,7 +57,7 @@
- {{ route('index', app()->getLocale()) }}/{{app()->getLocale()}}/posts/ + {{ route('index', app()->getLocale()) }}/posts/
@error('content.url')