🆙 Add fixed cms 🆙
This commit is contained in:
1 parent
b1a2cab62d
commit
b67e0ec2b9
3982 files changed
+193682
No files matched your search
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class ChatlogPrivate extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'chatlogs_private';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
public function sender(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class, 'user_from_id');
|
||||
}
|
||||
|
||||
public function receiver(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class, 'user_to_id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user