binggle's avatar

How to access to Laravel User model from my custom Package ?

Hi . I did not start to make my package . But I wonder how to access laravel user mode from my custom laravel package ..

Is there any guid for this ?

0 likes
7 replies
Snapey's avatar

perhaps config('auth.providers.users.model') ?

but of course the application could have multiple guards and providers

1 like
binggle's avatar

Sorry sir.

But I dont get it .

Could you explain in somehow detail?

Snapey's avatar

You don't get it, but you marked it best answer?

The config I suggested will tell you which model the project is using for authentication guard

binggle's avatar

It was my mis-clicking.

Still I don't get it ..

Could you explain more with code ?

Thanks.

binggle's avatar

Thanks for info.

I will check and review again and again .

It is not easy to understand whole picture of your morph something at a glance .

Anyway Thanks .

Please or to participate in this conversation.