diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index bd47f20..501d66e 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -41,7 +41,7 @@ public function update(ProfileUpdateRequest $request): RedirectResponse "totem" => $request->totem ?? "", "tel" => $request->tel ?? "", "contactable" => intval($request->contactable), - "path" => $file ?? "profiles/none.svg", + "path" => $file ?? "profiles/none.webp", ]); return redirect(route('profile.edit')); diff --git a/database/migrations/2025_01_27_223312_change_profile_none.php b/database/migrations/2025_01_27_223312_change_profile_none.php new file mode 100644 index 0000000..3f95c01 --- /dev/null +++ b/database/migrations/2025_01_27_223312_change_profile_none.php @@ -0,0 +1,27 @@ +where("path", "profiles/none.svg")->update([ + "path" => "profiles/none.webp" + ]); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + + } +}; diff --git a/resources/js/Pages/Admin/User/Index.vue b/resources/js/Pages/Admin/User/Index.vue index d517cb1..c4de8ce 100644 --- a/resources/js/Pages/Admin/User/Index.vue +++ b/resources/js/Pages/Admin/User/Index.vue @@ -61,8 +61,8 @@ const resetPassword = (id, email) => {
-
- +
+

{{ user.name }}

{{ user.totem }}

@@ -70,7 +70,10 @@ const resetPassword = (id, email) => {

{{ user.tel }}

{{ user.contactable ? "Oui" : "Non" }}

{{ user.created_at }}

- +