UserHasTag.php 500 Bytes
<?php

namespace App\Models;

use App\Support\Model;
use Awobaz\Compoships\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;


class UserHasTag extends Model
{
    use SoftDeletes;

    protected $table = 'user_has_tags';

    protected $hidden = ['deleted_at'];

    /**
     * @return \Awobaz\Compoships\Database\Eloquent\Relations\BelongsTo
     */
    public function tags(): BelongsTo
    {
        return $this->belongsTo(SystemTag::class, 'tag_id');
    }
}