25 lines
498 B
PHP
25 lines
498 B
PHP
<?php
|
|
|
|
namespace App\Models\Trace;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Message extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $connection = 'trace_tmi';
|
|
protected $table = 'messages';
|
|
|
|
/**
|
|
* The Trace channel that the message belongs to.
|
|
*
|
|
* @return App\Models\Trace\Channel
|
|
*/
|
|
public function channel()
|
|
{
|
|
return $this->belongsTo(Channel::class, 'channel_id', 'channel_id');
|
|
}
|
|
}
|