urlsnail/app/Models/Bookmark.php

19 lines
326 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Bookmark extends Model
{
use HasFactory;
protected $table = 'bookmarks';
public function children()
{
return $this->hasMany(BookmarkTag::class, 'bookmark_id');
}
}