mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 19:41:06 +03:30
add package
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Message extends Model
|
||||
{
|
||||
public $fillable = ['title', 'text', 'recipient_user_id', 'sender_user_id'];
|
||||
public function sender_user()
|
||||
{
|
||||
return $this->belongsTo('App\User', 'sender_user_id');
|
||||
}
|
||||
public function recipient_user()
|
||||
{
|
||||
return $this->belongsTo('App\User', 'recipient_user_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user