cmgmyr / laravel-messenger

Simple user messaging package for Laravel
MIT License
2.46k stars 517 forks source link

how to integrate this pkg in case of multiauth baised app #315

Closed abdul191993 closed 5 years ago

abdul191993 commented 5 years ago

I am working on Multiauth app where i want to use this pkg is there any way to use this pkg in a multiauth baised app..????

antonkomarev commented 5 years ago

Hi @abdul191993! Could you describe your question in more details? What do you mean multi auth and why this package doesn't fit your requirements?

abdul191993 commented 5 years ago

I am working on a project which involves multiple authentications like it have 4 type of users these users named consultants entrepreneurs.... and each have its own table own model own controllers separate register and login pages. but in this package one user model is targeted but there are 4 user models with different names and i want that each user exchange massages with each other.. https://www.tutsmake.com/laravel-multi-auth-lara-5-8-5-7-5-6-multiple-authentication/ this is the link for more details if you want more clear concept of multiauth.

antonkomarev commented 5 years ago

I might be wrong, but this package not designed to work this way. Each model in this package is exendable, so you can overwrite default behavior with your own.

Gummibeer commented 5 years ago

You only have to change the participant model to a polymorph relationship to the user. This should solve your setup.