jeudi 31 mars 2016

How to use one to many relation in Laravel?

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();
    }



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1M4BBET
via IFTTT

Aucun commentaire:

Enregistrer un commentaire