MangaDex/app/Models/Genre.php
2023-09-24 22:24:08 +06:30

20 lines
317 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Genre extends Model
{
use HasFactory;
protected $fillable = ['name', 'user_id'];
public function manga()
{
return $this->belongsToMany(Manga::class);
}
}