home
/
u941026986
/
domains
/
alda.paratune.com
/
public_html
/
app.4421
/
Models
➕ New
📤 Upload
✎ Editing:
HomeModel.php
← Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class HomeModel extends Model { use HasFactory; protected $table = 'home'; static public function getSingle() { return self::find(1); } public function getHomeImageIcon() { if(!empty($this->home_image_icon) && file_exists('upload/home/'.$this->home_image_icon)) { return url('upload/home/'.$this->home_image_icon); } else { return ""; } } public function getFooterLogo() { if(!empty($this->footer_logo) && file_exists('upload/logo/'.$this->footer_logo)) { return url('upload/logo/'.$this->footer_logo); } else { return ""; } } public function getFaqsImageIcon() { if(!empty($this->faqs_image_icon) && file_exists('upload/faqs/'.$this->faqs_image_icon)) { return url('upload/faqs/'.$this->faqs_image_icon); } else { return ""; } } public function getContactImageIcon() { if(!empty($this->contact_image_icon) && file_exists('upload/contact/'.$this->contact_image_icon)) { return url('upload/contact/'.$this->contact_image_icon); } else { return ""; } } public function getVideoImageIcon() { if(!empty($this->video_image_icon) && file_exists('upload/video/'.$this->video_image_icon)) { return url('upload/video/'.$this->video_image_icon); } else { return ""; } } public function getLogo() { if(!empty($this->logo) && file_exists('upload/logo/'.$this->logo)) { return url('upload/logo/'.$this->logo); } else { return ""; } } public function getLoadingLogo() { if(!empty($this->loading_logo) && file_exists('upload/logo/'.$this->loading_logo)) { return url('upload/logo/'.$this->loading_logo); } else { return ""; } } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel