Sindbad~EG File Manager

Current Path : /home/zada/public_html/app/Models/
Upload File :
Current File : /home/zada/public_html/app/Models/PreorderConversationThread.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Traits\PreventDemoModeChanges;

class PreorderConversationThread extends Model
{
    use HasFactory,PreventDemoModeChanges;
    protected $fillable = ['preorder_product_id', 'sender_id', 'receiver_id'];

    public function preorderProduct()
    {
        return $this->belongsTo(PreorderProduct::class);
    }

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

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

    public function messages()
    {
        return $this->hasMany(PreorderConversationMessage::class);
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists (>^ω^<)看过哭02teddd(>^ω^<)看过哭02teddd