Skip to content

Instantly share code, notes, and snippets.

@filipfilipovich
Created May 26, 2023 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filipfilipovich/c2f304daa6153d12737b2f2cfea45c04 to your computer and use it in GitHub Desktop.
Save filipfilipovich/c2f304daa6153d12737b2f2cfea45c04 to your computer and use it in GitHub Desktop.
Book model class
<?php
namespace App\Models;
use DateTimeInterface;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
/**
* App\Models\Book
*
* @property int $id
* @property string $title
* @property string $author
* @property string $isbn
* @property DateTimeInterface $date_published
* @property int $number_sold
*/
class Book extends Model
{
use HasFactory;
public $timestamps = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment