Skip to content

Instantly share code, notes, and snippets.

@AlphaRomeoMike
Created July 9, 2021 11:05
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 AlphaRomeoMike/302549d649ecb50e2415a1a5dc9d1f2e to your computer and use it in GitHub Desktop.
Save AlphaRomeoMike/302549d649ecb50e2415a1a5dc9d1f2e to your computer and use it in GitHub Desktop.
Modify the model as per your columns
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
use HasFactory;
protected $fillable = [
'name', 'slug', 'description', 'price'
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment