osb/app/Models/ProductTranslate.php

17 lines
287 B
PHP
Raw Normal View History

2018-05-20 12:53:14 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ProductTranslate extends Model
{
protected $table = 'product_translate';
public $timestamps = FALSE;
2023-05-05 00:32:04 +00:00
2023-05-05 05:48:24 +00:00
public function getDescriptionAttribute(?string $val): string
2023-05-05 00:32:04 +00:00
{
return $val ?: 'No Description';
}
2018-05-20 12:53:14 +00:00
}