Anons79 Mini Shell

Directory : /home/aplikasiposinfo/public_html/joglocell.fixmate.id/app/Providers/
Upload File :
Current File : /home/aplikasiposinfo/public_html/joglocell.fixmate.id/app/Providers/AppServiceProvider.php

<?php

namespace App\Providers;

use App\Models\landing_content_manager;
use App\Models\MetaPixel;
use App\Models\Profil;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
use Illuminate\Pagination\Paginator;

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

    /**
     * Bootstrap any application services.
     */

    public function boot(): void
    {
        // URL::forceScheme('https');

        Paginator::useBootstrapFive();
        Paginator::useBootstrapFour();
        try {
            if (Schema::hasTable('profils') && Schema::hasTable('landing_content_managers')) {
                $profil = Profil::first();
                $landing = landing_content_manager::first();

                $datas = [
                    'profil' => $profil,
                    'landing' => $landing,
                ];

                View::share($datas);
            }
        } catch (\Exception $e){

        }

        try {
            if (Schema::hasTable('meta_pixels')) {
                $metaPixels = MetaPixel::get();

                $datas = [
                    'metaPixels' => $metaPixels,
                ];

                View::share($datas);
            }
        } catch (\Exception $e){

        }
    }
}

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]