Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
stanfortonski committed Aug 25, 2021
1 parent b60a402 commit 89dc9e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion app/Http/Controllers/Admin/UserPanelController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
]);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion resources/views/admin/categories/save.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<label for="url">{{ __('url') }}*</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">{{ route('index', app()->getLocale()) }}/{{app()->getLocale()}}/categories/</span>
<span class="input-group-text">{{ route('index', app()->getLocale()) }}/categories/</span>
</div>
<input type="text" id="url" name="content[url]" class="form-control @error('content.url') is-invalid @enderror" value="{{ $content->url ?? old('content.url') }}" required>
@error('content.url')
Expand Down
2 changes: 1 addition & 1 deletion resources/views/admin/posts/save.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<label for="url">{{ __('url') }}*</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">{{ route('index', app()->getLocale()) }}/{{app()->getLocale()}}/posts/</span>
<span class="input-group-text">{{ route('index', app()->getLocale()) }}/posts/</span>
</div>
<input type="text" id="url" name="content[url]" class="form-control @error('content.url') is-invalid @enderror" value="{{ $content->url ?? old('content.url') }}" required>
@error('content.url')
Expand Down

0 comments on commit 89dc9e6

Please sign in to comment.