| Current Path : /home/users/unlimited/www/api.xalonx.com/app/Models/ |
| Current File : /home/users/unlimited/www/api.xalonx.com/app/Models/ProductCategory.php |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ProductCategory extends Model
{
use HasFactory;
protected $table = 'product_categories';
public $timestamps = true; //by default timestamp false
protected $fillable = ['name', 'cover', 'status', 'extra_field'];
protected $hidden = [
'updated_at',
'created_at',
];
protected $casts = [
'status' => 'integer',
];
}