芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/yeahea.digitalhubbd.com/app/Models/Banner.php
<?php namespace App\Models; use App\Common\Imageable; use Illuminate\Database\Eloquent\Factories\HasFactory; class Banner extends BaseModel { use HasFactory, Imageable; /** * The database table used by the model. * * @var string */ protected $table = 'banners'; /** * The attributes that should be casted to boolean types. * * @var array */ protected $casts = [ 'effect' => 'boolean', ]; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'title', 'description', 'link', 'link_label', 'bg_color', 'group_id', 'columns', 'shop_id', 'order', 'effect', ]; /** * Get the group for the banner. */ public function group() { return $this->belongsTo(BannerGroup::class); } /** * Setters */ public function setOrderAttribute($value) { $this->attributes['order'] = $value ?? 100; } // public function setOptionsAttribute($value) // { // $this->attributes['options'] = serialize($value); // } // /** // * Getters // */ // public function getOptionsAttribute($value) // { // return unserialize($value); // } }
Page is not found
Oops! Page not found.
Sorry, an error has occured, Requested page not found!
Back To Homepage