mirror of
https://github.com/HtetPhone/MangaDex.git
synced 2025-02-20 11:23:19 +08:00
20 lines
317 B
PHP
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);
|
|
}
|
|
}
|
|
|