// SYSTEM PANEL //
[ROOT]
/
mnt
/
pleskStorage
/
vhosts
/
kodsolutions.net
/
subdomains
/
go-rent.kodsolutions.net
/
app
/
Models
[ PARENT ]
EDIT :: Page.php
<?php namespace App\Models; use App\Helpers\Constants; use Spatie\Translatable\HasTranslations; use Illuminate\Database\Eloquent\Factories\HasFactory; class Page extends Model { use HasFactory; use HasTranslations; public $translatable = ['title', 'description','sub_title']; protected $fillable = [ 'title', 'slug', 'image', 'icon', 'type', 'position', 'active', 'description', 'sub_title', 'link', ]; public function scopeVision($query) { return $query->where('type', Constants::VISION_PAGE_TYPE); } public function scopeMission($query) { return $query->where('type', Constants::MISSION_PAGE_TYPE); } public function scopeValue($query) { return $query->where('type', Constants::VALUE_PAGE_TYPE); } public function scopeAbout($query) { return $query->where('type', Constants::ABOUT_PAGE_TYPE); } public function scopeSlider($query) { return $query->where('type', Constants::SLIDER_PAGE_TYPE); } public function scopeVideo($query) { return $query->where('type', Constants::VIDEO_PAGE_TYPE); } public function scopeJoinStore($query) { return $query->where('type', Constants::STORE_JOIN_PAGE_TYPE); } public function scopeDownloadApp($query) { return $query->where('type', Constants::DOWNLOAD_PAGE_TYPE); } public function scopeJoinDelegate($query) { return $query->where('type', Constants::DELEGATE_JOIN_PAGE_TYPE); } // }
SAVE
CANCEL