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