osb/app/Models/ProductTranslate.php

17 lines
287 B
PHP
Raw Normal View History

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