diff --git a/app/Http/Controllers/MypageController.php b/app/Http/Controllers/MypageController.php index 2fb59c6..a64f0a6 100644 --- a/app/Http/Controllers/MypageController.php +++ b/app/Http/Controllers/MypageController.php @@ -79,11 +79,11 @@ class MypageController extends Controller ->get(); // お知らせ情報を取得 - $informations= DB::table('user_information_history') + $information = DB::table('user_information_history') ->where('user_id', $user_id) ->orderBy('user_information_history_id', 'desc') - ->limit(3) - ->get(); + ->select('entry_date', 'user_information_history') + ->first(); \Log::info('マイページにアクセス', [ 'user_id' => $user_id, @@ -94,7 +94,7 @@ class MypageController extends Controller 'user_name' => $user->user_name, // ユーザー名(ヘッダー用) 'contracts' => $contracts, 'seals' => $seals, - 'informations' => $informations + 'information' => $information ]); } } diff --git a/resources/views/mypage/index.blade.php b/resources/views/mypage/index.blade.php index 2269f75..f31a0b1 100644 --- a/resources/views/mypage/index.blade.php +++ b/resources/views/mypage/index.blade.php @@ -243,9 +243,14 @@