You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
612 B
PHTML

2 years ago
<?php
namespace App\Models;
class Counter extends BaseModel
{
protected $table = 'counter';
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'lo_date', 'lo_count'
];
protected $visible = [
'lo_date', 'lo_count'
];
/**
* 카운터 저장
* param : Array $data
* return : Void
*/
public static function add($data)
{
return self::query()->create([
'lo_date' => $data['lo_date'],
'lo_count' => $data['lo_count']
]);
}
}