UnknownSec Bypass
403
:
/
mnt
/
lmsestudio-instance-vol002
/
lms_13e519f8a16f
/
app
/
Repositories
/
Page
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
PageRepositoryEloquent.php
<?php namespace EstudioLMS\Repositories\Page; use EstudioLMS\Models\Config\Page; use Prettus\Repository\Eloquent\BaseRepository; /** * Class PageRepositoryEloquent * @package EstudioLMS\Repositories\StaticPage */ class PageRepositoryEloquent extends BaseRepository implements PageRepository { /** * Specify Model class name * * @return string */ public function model() { return Page::class; } /** * @return mixed */ public function availablePages() { $locale = app()->getLocale(); return $this->model->orderBy('id') ->translatedIn($locale) ->withTranslation($locale) ->where('published', '=', true) ->get(); } /** * @return \Illuminate\Database\Eloquent\Collection|static[] */ public function allPages() { return $this->model->with('translations')->get(); } /** * @param $locale * @return mixed */ public function translateOrNew($locale) { return $this->model()->translateOrNew($locale); } /** * @param $slug * @param $locale * @return mixed */ public function translate($slug, $locale) { $page = $this->model->where('slug', '=', $slug)->first(); return $page->translate($locale); } }
Copyright © 2026 - UnknownSec