Support the ongoing development of Laravel.io →
Authentication Eloquent
0

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

0

Sign in to participate in this thread!

LaraJobs

Your banner here too?

Moderators

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 Laravel.io - All rights reserved.