One Hat Cyber Team
Your IP:
216.73.216.58
Server IP:
198.54.114.155
Server:
Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
5.6.40
Create File
|
Create Folder
Execute
Dir :
~
/
home
/
fluxyjvi
/
public_html
/
project
/
app
/
Providers
/
View File Name :
AppServiceProvider.php
<?php namespace App\Providers; use App\Models\Font; use App\Models\PaymentGateway; use Illuminate\Support\Facades\DB; use Illuminate\Support\ServiceProvider; use Illuminate\Pagination\Paginator; use Illuminate\Support\Facades\App; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\Validator; class AppServiceProvider extends ServiceProvider { /** * Register any application services. * * @return void */ public function register() { // } /** * Bootstrap any application services. * * @return void */ public function boot() { view()->composer('*',function($settings){ $paystack = PaymentGateway::whereKeyword('paystack')->first(); $paystack = $paystack->convertAutoData(); $mercado = PaymentGateway::whereKeyword('mercadopago')->first(); $mercado = $mercado->convertAutoData(); $settings->with('seo', DB::table('seotools')->first()); $settings->with('paystackKey', $paystack['key']); $settings->with('mercadoKey', $mercado['public_key']); $settings->with('gs', DB::table('generalsettings')->first()); $settings->with('pages', DB::table('pages')->whereStatus(1)->get()); $settings->with('ps', DB::table('pagesettings')->first()); $settings->with('social', DB::table('socialsettings')->first()); $settings->with('sociallinks', DB::table('social_links')->orderBy('id','desc')->get()); $settings->with('default_font', Font::where('is_default','=',1)->first()); $settings->with('defaultCurrency', Session::get('currency') ? DB::table('currencies')->where('id','=',Session::get('currency'))->first() : DB::table('currencies')->where('is_default','=',1)->first()); if (\Request::is('admin') || \Request::is('admin/*')) { $data = DB::table('admin_languages')->where('is_default','=',1)->first(); App::setlocale($data->name); } else { if (Session::has('language')) { $data = DB::table('languages')->find(Session::get('language')); App::setlocale($data->name); } else { $data = DB::table('languages')->where('is_default','=',1)->first(); App::setlocale($data->name); } } if (Session::has('currency')) { $data = DB::table('currencies')->find(Session::get('currency')); $settings->with('currency', $data); } else { $data = DB::table('currencies')->where('is_default','=',1)->first(); $settings->with('currency', $data); } }); Paginator::useBootstrap(); } }