You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
465 B

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Reaction extends Model
{
protected $primaryKey = 'message_mid';
protected $casts = [
'created_at' => 'datetime:Y-m-d H:i:s',
'updated_at' => 'datetime:Y-m-d H:i:s',
];
public function message()
{
return $this->belongsTo('App\Message');
}
public function contact()
{
return $this->hasOne('App\Contact', 'id', 'jidfrom');
}
}