mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 09:21:06 +03:30
change message
This commit is contained in:
+9
-7
@@ -2,16 +2,18 @@
|
||||
|
||||
namespace App;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class Message extends Model
|
||||
{
|
||||
public $fillable = ['title', 'text', 'status', 'recipient_user_id', 'sender_user_id'];
|
||||
public function sender_user()
|
||||
{
|
||||
use SoftDeletes;
|
||||
public $fillable = ['title', 'text', 'status', 'recipient_user_id', 'sender_user_id'];
|
||||
public function sender_user()
|
||||
{
|
||||
return $this->belongsTo('App\User', 'sender_user_id');
|
||||
}
|
||||
public function recipient_user()
|
||||
{
|
||||
}
|
||||
public function recipient_user()
|
||||
{
|
||||
return $this->belongsTo('App\User', 'recipient_user_id');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user