領収証発行サービス
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 satır
484B

  1. <?php
  2. namespace App\Http\Controllers\Web\Auth;
  3. use App\Models\User;
  4. use App\Codes\UserRole;
  5. use Illuminate\Support\Facades\Auth;
  6. trait Me
  7. {
  8. protected function me()
  9. {
  10. if (Auth::check()) {
  11. $user = Auth::user()->toArray();
  12. return array_intersect_key($user, array_flip([
  13. User::COL_NAME_ID,
  14. User::COL_NAME_CONTRACT_ID,
  15. User::COL_NAME_ROLE,
  16. ]));
  17. }
  18. return null;
  19. }
  20. }