Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
admin_new2
/
app
/
Models
/
Filename :
ProductPendingWishlistImage.php
back
Copy
<?php namespace App\Models; use Illuminate\Database\Eloquent\Casts\Attribute; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Config; class ProductPendingWishlistImage extends Model { use HasFactory; protected $table = 'product_pending_wishlist_images'; protected $primaryKey = 'image_id'; protected $fillable = [ 'image_id', 'product_wished_id', 'image_name', 'created_at', 'updated_at', 'deleted_at', ]; protected function imageName(): Attribute { return Attribute::make( get: fn (string $value) => Config::get('constants.app.api-wish-image-url').$value, ); } }