Explorar o código

Take username on user and not on profile

Whaxion %!s(int64=7) %!d(string=hai) anos
pai
achega
20a29acacf
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      resources/views/admin/users/home.blade.php

+ 2 - 2
resources/views/admin/users/home.blade.php

@@ -22,7 +22,7 @@
       <tr>
         <th scope="row">
           <a href="{{$user->url()}}">
-            {{$user->profile->username}}
+            {{$user->username}}
           </a>
         </th>
         <td>{{$user->profile->statuses->count()}}</td>
@@ -48,4 +48,4 @@
       });
     });
   </script>
-@endpush
+@endpush