diff --git a/skolehjem/app/Http/Controllers/UserController.php b/skolehjem/app/Http/Controllers/UserController.php index 5880e1d..78a6be3 100644 --- a/skolehjem/app/Http/Controllers/UserController.php +++ b/skolehjem/app/Http/Controllers/UserController.php @@ -75,7 +75,7 @@ class UserController extends Controller Log::debug("SAVED USER"); - return view("users.store"); + return Response::detect("users.store"); } /** diff --git a/skolehjem/resources/views/admin/contacts/index.blade.php b/skolehjem/resources/views/admin/contacts/index.blade.php index 36b034a..0d1554f 100644 --- a/skolehjem/resources/views/admin/contacts/index.blade.php +++ b/skolehjem/resources/views/admin/contacts/index.blade.php @@ -26,7 +26,7 @@ {{ $contact->email }} {{ $contact->phone }} $contact ]) }}">Update - $contact ]) }}">Delete + $contact ]) }}">Delete @endforeach diff --git a/skolehjem/resources/views/admin/users/index.blade.php b/skolehjem/resources/views/admin/users/index.blade.php index 00448d7..a6e15d1 100644 --- a/skolehjem/resources/views/admin/users/index.blade.php +++ b/skolehjem/resources/views/admin/users/index.blade.php @@ -26,14 +26,7 @@ {{ $user->email }} {{ $user->phone }} $user->id ]) }}">Update - -
$user ]) }}" class="w-100"> - @csrf - @method("delete") - - -
- + $user ]) }}">Delete @endforeach