ok

Mini Shell

Direktori : /proc/thread-self/root/home2/selectio/www/limpiar.in.net/updates/app/Models/
Upload File :
Current File : //proc/thread-self/root/home2/selectio/www/limpiar.in.net/updates/app/Models/Conversation.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Conversation extends Model
{
    public function messages(){
        return $this->hasMany(Message::class);
    }

    public function sender(){
        return $this->belongsTo(User::class, 'sender_id');
    }

    public function receiver(){
        return $this->belongsTo(User::class, 'receiver_id');
    }
}

Zerion Mini Shell 1.0