KUJUNTI.ID MINISH3LL
Path : /var/www/html/jewelry-pos/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/jewelry-pos/app/Providers/AppServiceProvider.php


<?php

namespace App\Providers;

use App\Models\Currency;
use App\Models\Setting;


use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\URL;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\ServiceProvider;
use Illuminate\Pagination\LengthAwarePaginator;

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

    /**
     * Bootstrap any application services.
     */
    public function boot(): void
    {
        Paginator::useBootstrap();
        if (env('FORCE_HTTPS')==true)
        {
            URL::forceScheme('https');
        }
        // view fav_icon
        view()->composer('*', function ($view){
            $setting = Setting::first();

            $view->with('settings_', $setting);
        });
        view()->composer('*', function ($view){
            $currency = Currency::where('is_based' , true)->firstOrFail();
            $view->with('currency_', $currency);
        });
        Schema::defaultStringLength(191);
    }
}

© KUJUNTI.ID