| 123456789101112131415161718192021222324252627 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- class ShareSettings extends Model
- {
- protected $table = 'love_share_settings';
- protected $fillable = [
- 'username', 'domain','icon','title','description','live_rome_username', 'live_rome_title', 'live_rome_icon','live_rome_description','live_rome_domain'
- ];
- public function getIconAttribute(){
- $icon=$this->attributes['icon'];
- if ($icon){
- return config('love.QINIU_MY_DOMAINS').$icon;
- }
- return '';
- }
- public function getLiveRomeIconAttribute(){
- $icon=$this->attributes['live_rome_icon'];
- if ($icon){
- return config('love.QINIU_MY_DOMAINS').$icon;
- }
- return '';
- }
- }
|