芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/yeahea.digitalhubbd.com/app/Models/Feedback.php
'boolean', 'spam' => 'boolean', ]; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'customer_id', 'rating', 'comment', 'feedbackable_id', 'feedbackable_type', 'approved', 'spam', ]; /** * Get all of the owning feedbackable models. */ public function feedbackable() { return $this->morphTo(); } /** * Get the customer associated with the model. */ public function customer() { return $this->belongsTo(Customer::class)->withDefault(); } /** * Set the rating for the model. */ public function setRatingAttribute($value) { $this->attributes['rating'] = $value ? (int) $value : 1; } /** * Returns translated label text * * @return array labels */ public function getLabels() { $labels = []; $labels[] = trans('theme.verified_purchase'); return $labels; } }