first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Summary extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'content',
|
||||
'key_insights',
|
||||
'book_id',
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the book that owns the summary.
|
||||
*/
|
||||
public function book()
|
||||
{
|
||||
return $this->belongsTo(Book::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user