I think you are almost there.
In your blade I see auth()->karyawan()->nama
but the guard doesn't have the method karyawan
. You can use the user()
function that will return the Karyawan model.
That will result in: auth()->user()->nama
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community