Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e19c244

Browse files
committed
feat: Create Product model and add required to fields to fillable array
1 parent 7644d3a commit e19c244

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

app/Models/Product.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace App\Models;
4+
5+
use Illuminate\Database\Eloquent\Factories\HasFactory;
6+
use Illuminate\Database\Eloquent\Model;
7+
8+
class Product extends Model
9+
{
10+
use HasFactory;
11+
protected $fillable = [
12+
'name',
13+
'detail'
14+
];
15+
}

0 commit comments

Comments
 (0)