File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
app/Http/Controllers/Admin Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff 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 /**
Original file line number Diff line number Diff line change 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' )
Original file line number Diff line number Diff line change 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' )
You can’t perform that action at this time.
0 commit comments