⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.91
Server IP:
157.245.101.34
Server:
Linux skvinfotech-website 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
wesellcomputer.com_new_old
/
app
/
View File Name :
ProductGallery.php
<?php namespace App; use Illuminate\Database\Eloquent\Model; class ProductGallery extends Model { protected $appends = ['thumb_image_path','image_path']; public function getThumbImagePathAttribute() { if(empty($this->image) || $this->image == "") return asset('/product-thumbs/default_image.png'); else return asset('/product-thumbs').'/'.$this->image; } public function getImagePathAttribute() { if(empty($this->image) || $this->image == "") return asset('/products/default_image.png'); else return asset('/products').'/'.$this->image; } }