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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire