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