1
0
Fork 0

Refactor UserController to ProfileController.

This commit is contained in:
Henrik Hautakoski 2021-07-20 15:38:57 +02:00
parent 5117907a4d
commit b76a997948
9 changed files with 23 additions and 23 deletions

View file

@ -18,7 +18,7 @@
<div class="flex justify-end text-white space-x-4">
@auth
<a href="{{ route('user.index') }}"><strong>{{ auth()->user()->username }}</strong></a>
<a href="{{ route('profile.index') }}"><strong>{{ auth()->user()->username }}</strong></a>
<x-form method="DELETE" action="{{ route('auth.logout') }}">
<a href="/" onclick="this.closest('form').submit();return false;">{{ __('Logout') }}</a>
</x-form>

View file

@ -8,7 +8,7 @@
<div class="mx-auto max-w-sm p-4">
<x-form action="{{ route('user.update') }}">
<x-form action="{{ route('profile.update') }}">
<div class="mb-2">
<x-form.label for="username">{{ __('Username') }}</x-form.label>

View file

@ -7,7 +7,7 @@
</x-slot>
<x-slot name="page_links">
<x-button element="a" class="flex items-center" href="{{ route('user.edit') }}">
<x-button element="a" class="flex items-center" href="{{ route('profile.edit') }}">
<x-icon name="pencil" class="h-6 w-6 mr-1" /> {{ __('Edit') }}
</x-button>
</x-slot>