Compare commits

..

No commits in common. "bbc7ae7e8392e8217c9c08eef7592be08f7bceb5" and "41cd07db41606c4d25853bd0072d106e57f976ec" have entirely different histories.

2 changed files with 7 additions and 12 deletions

View File

@ -79,11 +79,11 @@ class MypageController extends Controller
->get();
// お知らせ情報を取得
$information = DB::table('user_information_history')
$informations= DB::table('user_information_history')
->where('user_id', $user_id)
->orderBy('user_information_history_id', 'desc')
->select('entry_date', 'user_information_history')
->first();
->limit(3)
->get();
\Log::info('マイページにアクセス', [
'user_id' => $user_id,
@ -94,7 +94,7 @@ class MypageController extends Controller
'user_name' => $user->user_name, // ユーザー名(ヘッダー用)
'contracts' => $contracts,
'seals' => $seals,
'information' => $information
'informations' => $informations
]);
}
}

View File

@ -243,14 +243,9 @@
</h5>
</div>
<ul class="info-slider_1-1">
@if($information)
<li>
<span class="small" style="margin-right: 1em;">{{ $information->entry_date }}</span>
{{ $information->user_information_history }}
</li>
@else
<li class="text-center">お知らせはありません。</li>
@endif
@foreach($informations as $information)
<li><span class="small" style="margin-right: 1em;">{{ $information->entry_date }}</span>{{ $information->user_information_history }}</li>
@endforeach
</ul>
</div>
</div>