// SYSTEM PANEL //
[ROOT]
/
mnt
/
pleskStorage
/
vhosts
/
kodsolutions.net
/
subdomains
/
syaaraa.kodsolutions.net
/
app
/
Models
/
Package
[ PARENT ]
EDIT :: Package.php
<?php namespace App\Models\Package; use App\Models\Model; use App\Helpers\Constants; use Spatie\Translatable\HasTranslations; use Illuminate\Database\Eloquent\Factories\HasFactory; class Package extends Model { use HasFactory; use HasTranslations; public $translatable = ['title', 'image', 'sub_title', 'description']; protected $fillable = [ 'title', 'sub_title', 'description', 'slug', 'image', 'price', 'position', 'active', 'discount', 'type', 'duration' ]; public function scopeOwner($query) { return $query->where('type', Constants::OWNER_TYPE); } public function scopeMarketer($query) { return $query->where('type', Constants::MARKETER_TYPE); } public function scopeDeveloper($query) { return $query->where('type', Constants::DEVELOPER_TYPE); } public function scopeOffice($query) { return $query->where('type', Constants::OFFICE_TYPE); } }
SAVE
CANCEL