Support the ongoing development of →
Authentication Eloquent

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!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 - All rights reserved.