Skip to content

Commit fa2d7f5

Browse files
committed
Add user name on urls list
1 parent 09e37ef commit fa2d7f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

resources/views/urls/index.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@
1919
<th>Url</th>
2020
<th>Short Url</th>
2121
<th>Counter</th>
22+
<th>User</th>
2223
<th></th>
2324
</tr>
2425
@foreach ($urls as $url)
2526
<tr>
2627
<td>{{ $url->url }}</td>
2728
<td><a href="{{ route('shorturl.redirect', $url->code) }}">{{ $url->code }}</a></td>
2829
<td>{{ $url->counter }}</td>
30+
<td>{{ optional($url->user)->name }}</td>
2931
<td>
3032
<button class="btn btn-sm btn-success" data-clipboard-text="{{ route('shorturl.redirect', $url->code) }}">Copy</button>
3133
<a class="btn btn-sm btn-primary" href="{{ route('shorturl.url.edit', $url->id) }}" role="button">Edit</a>

0 commit comments

Comments
 (0)