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

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!

Eventy

Your banner here too?

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.