Initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Color extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'hex',
|
||||
'in_stock',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'in_stock' => 'boolean',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user