Map of product count

This commit is contained in:
2024-03-25 19:20:28 +01:00
parent 21865a35d9
commit 4503b7c33f
7 changed files with 73 additions and 10 deletions

View File

@@ -0,0 +1,40 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ProductsCount extends Model
{
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 't_products_count';
/**
* The primary key associated with the table.
*
* @var string
*/
//protected $primaryKey = 'name';
/**
* Indicates if the model's ID is auto-incrementing.
*
* @var bool
*/
public $incrementing = false;
use HasFactory;
protected function get()
{
return $this->get();
}
}