-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined relationship [sender] on model [Nahid\Talk\Messages\Message]. #100
Comments
Same issue. [2017-11-24 11:03:14] local.ERROR: Call to undefined relationship [sender] on model [Nahid\Talk\Messages\Message]. {"userId":1,"email":"c2xxxx@zoho.com","exception":"[object] (Illuminate\Database\Eloquent\RelationNotFoundException(code: 0): Call to undefined relationship [sender] on model [Nahid\Talk\Messages\Message]. at /home/vagrant/store/vendor/laravel/framework/src/Illuminate/Database/Eloquent/RelationNotFoundException.php:34) Please Help! |
Same here when i try to get all the messages by User id and pass them to view. $myMessages = Talk::getMessagesByUserId(Auth::user()->id); EDIT: Added to UserModel
Check this Docs https://laravel.com/docs/5.1/eloquent#soft-deleting Don't forget the new migration for the SoftDeletes... |
Same issue. Kindly resolve. |
If you dont want to use softdelete on your user model, then just add a dummy withTrash function in the user model: |
Hi, i'm trying to implement Talk into my project but i'm getting this error:
This happens when I try to send a message to a user.
I could not find the issue in my project, so I installed a fresh nahid/talk-example and configured it as told.
The above error is copied from the error page I got in the talk-example application again trying to send a message->does not work-> refresh page-> get error.
It also happens when i return to /home (in talk-example) and try to send message to another user.
Anyone else had this issue?
The text was updated successfully, but these errors were encountered: