some progress

This commit is contained in:
2025-09-20 16:47:41 +03:00
parent e650f3c1b2
commit 2228469bcb
65 changed files with 3382 additions and 311 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Author extends Model
{
protected $fillable = [
'name',
'slug',
'bio',
];
/**
* The books that belong to the author.
*/
public function books()
{
return $this->belongsToMany(Book::class, 'author_book')->withTimestamps();
}
}