<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Message extends Model {

	protected $fillable = [ 'from_user_id', 'to_user_id', 'subject', 'content', 'attachment', 'oread', 'delete_sender', 'delete_receiver', ];
	protected $primaryKey = 'id';
	protected $table = 'messages';

    public function user()
    {
        return $this->belongsTo('App\Models\User'); 
    }
}
