You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm eager loading the user authentication logs using the morphOne latestAuthentication() method on a view I use **{{$user->latestAuthentication}}** returns
{"id":5,"authenticatable_type":"App\\Models\\User","authenticatable_id":21,"ip_address":"127.0.0.1","user_agent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko\/20100101 Firefox\/97.0","login_at":"2022-02-14T16:00:04.000000Z","login_successful":true,"logout_at":null,"cleared_by_user":false,"location":null}
of every user i want only the login at and convert to human readable.
i tried {{$user->latestAuthentication->login_at}} not working i need help
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i'm eager loading the user authentication logs using the morphOne latestAuthentication() method on a view I use
**{{$user->latestAuthentication}}**
returns{"id":5,"authenticatable_type":"App\\Models\\User","authenticatable_id":21,"ip_address":"127.0.0.1","user_agent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko\/20100101 Firefox\/97.0","login_at":"2022-02-14T16:00:04.000000Z","login_successful":true,"logout_at":null,"cleared_by_user":false,"location":null}
of every user i want only the login at and convert to human readable.
i tried
{{$user->latestAuthentication->login_at}}
not working i need helpBeta Was this translation helpful? Give feedback.
All reactions