magicai / app /Models /ChatCategory.php
Softin Trading
Initial commit from Github
5f32fbd
Raw History Blame Contribute Delete
381 Bytes
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class ChatCategory extends Model
{
protected $table = 'chat_category';
protected $fillable = [
'name',
'user_id',
];
public function user(): BelongsTo
{
return $this->belongsTo(User::class, 'user_id');
}
}