UnknownSec Bypass
403
:
/
mnt
/
lmsestudio-instance-vol002
/
eagleead
/
app
/
Http
/
Controllers
/
Environment
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
EnvironmentController.php
<?php namespace EstudioLMS\Http\Controllers\Environment; use EstudioLMS\Base\ResponseBuilder; use EstudioLMS\Helpers\Helpers; use EstudioLMS\Http\Controllers\Controller; use EstudioLMS\Repositories\Auth\UserRepository; use EstudioLMS\Repositories\Environment\HiredCourseRepository; use EstudioLMS\Services\Admin\OwnerNotificationService; use EstudioLMS\System\PlanValidator; use Illuminate\Auth\Guard; use Illuminate\Translation\Translator; use mjanssen\BreadcrumbsBundle\Breadcrumbs; /** * Class EnvironmentController * @package EstudioLMS\Http\Controllers\Environment */ class EnvironmentController extends Controller { /** * @var Guard */ private $auth; /** * @var Translator */ private $translator; /** * @var Breadcrumbs */ private $breadCrumb; /** * @var ResponseBuilder */ private $responseBuilder; /** * @var UserRepository */ private $userRepo; /** * @var Helpers */ private $helper; /** * @var HiredCourseRepository */ private $hiredCourseRepository; /** * @var PlanValidator */ private $planValidator; /** * @var OwnerNotificationService */ private $ownerNotificationService; /** * @param Translator $translator * @param Breadcrumbs $breadCrumb * @param Helpers $helper * @param ResponseBuilder $responseBuilder * @param UserRepository $userRepo * @param Guard $auth * @param HiredCourseRepository $hiredCourseRepository * @param PlanValidator $planValidator * @param OwnerNotificationService $ownerNotificationService */ public function __construct( Translator $translator, Breadcrumbs $breadCrumb, Helpers $helper, responseBuilder $responseBuilder, UserRepository $userRepo, Guard $auth, HiredCourseRepository $hiredCourseRepository, PlanValidator $planValidator, OwnerNotificationService $ownerNotificationService ) { $this->middleware('auth'); $this->translator = $translator; $this->breadCrumb = $breadCrumb; $this->userRepo = $userRepo; $this->responseBuilder = $responseBuilder; $this->auth = $auth; $this->helper = $helper; $this->hiredCourseRepository = $hiredCourseRepository; $this->planValidator = $planValidator; $this->ownerNotificationService = $ownerNotificationService; } /** * @return \Illuminate\View\View */ public function index() { Breadcrumbs::addBreadcrumb('Dashboard', route('environment.index')); $bread = Breadcrumbs::generate(); $env = 'dashboard'; $title = 'Meu Dashboard'; $role = $this->auth->user()['roles'][0]['name']; $this->planValidator->customerStats(); $notification = $this->ownerNotificationService->getNotifications(); $support = ''; if ($role === 'admin' || $role === 'owner' || $role == 'superadmin') { $view = 'admin.dashboard'; } else { $view = 'ambiente.dashboard'; } return view($view, compact('bread', 'env', 'title', 'notification')); } }
Copyright © 2026 - UnknownSec