Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
app
/
Models
/
Filename :
ProductClaimedApprovalFile.php
back
Copy
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Casts\Attribute; use Config; class ProductClaimedApprovalFile extends Model { protected $table = 'product_claimed_approval_files'; protected $primaryKey = 'product_claimed_approval_file_id'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'product_claimed_id', 'file_name', 'updated_at' ]; public $timestamps = false; protected function fileName(): Attribute { return Attribute::make( get: fn (string $value) => Config::get('constants.app.api-product-approval-file-url').$value, ); } }