2018-05-20 22:53:14 +10:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class ProductTranslate extends Model
|
|
|
|
{
|
2022-10-18 23:23:45 +11:00
|
|
|
protected $table = 'product_translate';
|
2018-08-12 17:07:32 +10:00
|
|
|
|
2022-04-02 18:06:34 +11:00
|
|
|
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
|
|
|
}
|