⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
cms.dev-unit.com
/
core
/
app
/
Models
/
View File Name :
Language.php
<?php namespace App\Models; use App\Models\BasicSettings\CookieAlert; use App\Models\BasicSettings\PageHeading; use App\Models\BasicSettings\SEO; use App\Models\Curriculum\CourseCategory; use App\Models\Curriculum\CourseFaq; use App\Models\Curriculum\CourseInformation; use App\Models\CustomPage\PageContent; use App\Models\FAQ; use App\Models\Footer\FooterContent; use App\Models\Footer\QuickLink; use App\Models\HomePage\AboutUsSection; use App\Models\HomePage\ActionSection; use App\Models\HomePage\Fact\CountInformation; use App\Models\HomePage\Fact\FunFactSection; use App\Models\HomePage\Feature; use App\Models\HomePage\HeroSection; use App\Models\HomePage\NewsletterSection; use App\Models\HomePage\SectionTitle; use App\Models\HomePage\Testimonial; use App\Models\HomePage\VideoSection; use App\Models\Journal\BlogCategory; use App\Models\Journal\BlogInformation; use App\Models\MenuBuilder; use App\Models\Popup; use App\Models\Teacher\Instructor; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Language extends Model { use HasFactory; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = ['name', 'code', 'direction', 'is_default']; public function pageName() { return $this->hasOne(PageHeading::class); } public function seoInfo() { return $this->hasOne(SEO::class); } public function cookieAlertInfo() { return $this->hasOne(CookieAlert::class); } public function faq() { return $this->hasMany(FAQ::class); } public function customPageInfo() { return $this->hasMany(PageContent::class); } public function footerContent() { return $this->hasOne(FooterContent::class); } public function footerQuickLink() { return $this->hasMany(QuickLink::class); } public function announcementPopup() { return $this->hasMany(Popup::class); } public function instructor() { return $this->hasMany(Instructor::class); } public function courseCategory() { return $this->hasMany(CourseCategory::class); } public function courseInformation() { return $this->hasMany(CourseInformation::class); } public function courseFaq() { return $this->hasMany(CourseFaq::class); } public function heroSec() { return $this->hasOne(HeroSection::class, 'language_id', 'id'); } public function sectionTitle() { return $this->hasOne(SectionTitle::class, 'language_id', 'id'); } public function actionSec() { return $this->hasOne(ActionSection::class, 'language_id', 'id'); } public function feature() { return $this->hasMany(Feature::class, 'language_id', 'id'); } public function videoSec() { return $this->hasOne(VideoSection::class, 'language_id', 'id'); } public function funFactSec() { return $this->hasOne(FunFactSection::class, 'language_id', 'id'); } public function countInfo() { return $this->hasMany(CountInformation::class, 'language_id', 'id'); } public function testimonial() { return $this->hasMany(Testimonial::class, 'language_id', 'id'); } public function newsletterSec() { return $this->hasOne(NewsletterSection::class, 'language_id', 'id'); } public function blogCategory() { return $this->hasMany(BlogCategory::class); } public function blogInformation() { return $this->hasMany(BlogInformation::class); } public function menuInfo() { return $this->hasOne(MenuBuilder::class, 'language_id', 'id'); } public function aboutUsSec() { return $this->hasOne(AboutUsSection::class, 'language_id', 'id'); } }