23 lines
345 B
PHP
23 lines
345 B
PHP
<?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);
|
|
}
|
|
}
|