LoginSignup
3
2

More than 3 years have passed since last update.

Laravelコードメモ

Last updated at Posted at 2019-09-15

随時更新

〇〇.blade.php
//ログイン中のユーザー情報取得
{{ Auth::user()->name }}

//ログアウト
<a class="dropdown-item" href="{{ route('logout') }}"
 onclick="event.preventDefault();
 document.getElementById('logout-form').submit();">{{ __('Logout') }}
</a>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">@csrf</form>
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2