Files
opentextsummaries/app/Models/Category.php
T
2025-09-13 17:39:17 +03:00

23 lines
334 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Category extends Model
{
protected $fillable = [
'name',
'slug',
'description',
];
/**
* Get the books for the category.
*/
public function books()
{
return $this->hasMany(Book::class);
}
}