29 lines
653 B
PHP
29 lines
653 B
PHP
<?php
|
|
|
|
namespace Modules\Seller\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Carbon\Carbon;
|
|
|
|
class ProductBuzzerComment extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'tbl_product_buzzer_comment';
|
|
protected $fillable = [
|
|
'id', 'id_buzzer', 'id_user',
|
|
'comment', 'created_at', 'updated_at'
|
|
];
|
|
|
|
protected $hidden = ['created_at', 'updated_at'];
|
|
|
|
protected $keyType = 'string';
|
|
public $incrementing = false;
|
|
|
|
public function getCreatedAtAttribute($value)
|
|
{
|
|
return Carbon::parse($value)->format('Y-m-d H:i:s');
|
|
}
|
|
}
|