Files
ikea/app/Models/Settings.php
2024-01-26 21:19:49 +01:00

41 lines
688 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Settings extends Model
{
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'c_settings';
/**
* 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($name = null)
{
return $this->where('name',$name)->get();
}
}