You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
500 B
25 lines
500 B
<?php
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class BannerTranslations extends Model
|
|
{
|
|
|
|
protected $table = 'banner_translations';
|
|
protected $primaryKey = 'id';
|
|
public $timestamps = false;
|
|
protected $fillable = ['locale', 'imgurl'];
|
|
|
|
// public function getImgurlAttribute($value)
|
|
// {
|
|
// if (strpos($value,'http') !== false){
|
|
// return $value;
|
|
// }
|
|
// return getFullPath($value);
|
|
// }
|
|
|
|
}
|
|
|