Created
May 26, 2023 10:22
-
-
Save filipfilipovich/c2f304daa6153d12737b2f2cfea45c04 to your computer and use it in GitHub Desktop.
Book model class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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