mercredi 30 janvier 2019

How to get value Auth::User() array elements in Laravel

I want to get elements in Auth::User() Array in page.Blade.php. After .output array show many elements like

  Admin {#474 ▼
  #guard: "admin"
  #fillable: array:4 [▶]
  #hidden: array:2 [▶]
  #connection: "mysql"
  #table: null
  #primaryKey: "id"
  #keyType: "int"
  +incrementing: true
  #with: []

I'm trying to access using Auth::user()->guard; this but it's not work for me . please tell me how to get this.Many Thanks in Advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire