urlsnail/app/Models/Bookmark.php

21 lines
437 B
PHP
Raw Normal View History

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
2024-05-29 21:07:23 +00:00
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasManyThrough;
class Bookmark extends Model
{
use HasFactory;
protected $table = 'bookmarks';
2024-05-29 21:07:23 +00:00
public function tags(): BelongsToMany
{
2024-05-29 21:07:23 +00:00
return $this->belongsToMany(Tag::class);
}
}