17 lines
287 B
PHP
17 lines
287 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ProductTranslate extends Model
|
|
{
|
|
protected $table = 'product_translate';
|
|
|
|
public $timestamps = FALSE;
|
|
|
|
public function getDescriptionAttribute(?string $val): string
|
|
{
|
|
return $val ?: 'No Description';
|
|
}
|
|
} |