osb/app/Models/ProductTranslate.php

17 lines
286 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
public function getDescriptionAttribute(string $val): string
{
return $val ?: 'No Description';
}
2018-05-20 12:53:14 +00:00
}