Initial commit

This commit is contained in:
Developer
2025-04-21 16:03:20 +02:00
commit 2832896157
22874 changed files with 3092801 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Domain\Messenger\Models;
use App\Models\User;
use App\Models\Model;
use App\Domain\Messenger\Models\ChatRoom;
class Message extends Model
{
// protected $touches = ['room'];
public function user()
{
return $this->belongsTo(User::class);
}
public function room()
{
return $this->belongsTo(ChatRoom::class, 'chat_room_id');
}
}