I have accounts
table in which I want to be Authenticatable and I done to this, already did the answer of @PintuKumar in this stackoverflow-link and it's working fine.
My issue here, the line below is working
auth()->user()->email
But what I wanted is the line below, when I try it, it doesn't work
auth()->account()->email
It returns an error below:
Method Illuminate\Auth\SessionGuard::account does not exist. (View: D:\workspace\laravel\blog\resources\views\home.blade.php)
Anyone, does know how to change function name from user to custom? I'm really stuck with this.