Skip to content

Commit 89dc9e6

Browse files
Hotfix
1 parent b60a402 commit 89dc9e6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

app/Http/Controllers/Admin/UserPanelController.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ class UserPanelController extends Controller
2222
{
2323
public function index()
2424
{
25-
return view('admin.user-panel.index')->with('user', auth()->user());
25+
return view('admin.user-panel.index')->with([
26+
'user' => auth()->user(),
27+
'content' => auth()->user()->content()->first()
28+
]);
2629
}
2730

2831
/**

resources/views/admin/categories/save.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<label for="url">{{ __('url') }}*</label>
5858
<div class="input-group">
5959
<div class="input-group-prepend">
60-
<span class="input-group-text">{{ route('index', app()->getLocale()) }}/{{app()->getLocale()}}/categories/</span>
60+
<span class="input-group-text">{{ route('index', app()->getLocale()) }}/categories/</span>
6161
</div>
6262
<input type="text" id="url" name="content[url]" class="form-control @error('content.url') is-invalid @enderror" value="{{ $content->url ?? old('content.url') }}" required>
6363
@error('content.url')

resources/views/admin/posts/save.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<label for="url">{{ __('url') }}*</label>
5858
<div class="input-group">
5959
<div class="input-group-prepend">
60-
<span class="input-group-text">{{ route('index', app()->getLocale()) }}/{{app()->getLocale()}}/posts/</span>
60+
<span class="input-group-text">{{ route('index', app()->getLocale()) }}/posts/</span>
6161
</div>
6262
<input type="text" id="url" name="content[url]" class="form-control @error('content.url') is-invalid @enderror" value="{{ $content->url ?? old('content.url') }}" required>
6363
@error('content.url')

0 commit comments

Comments
 (0)