I'm beginning to use Laravel Model relationship. But now I don't know how to used that relationship as below function
public function getNotification() {
return self::select('*')->join('users','users.id','=','Notification.n_user_id')->get();
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire