Domain: amberpublishers.in
Server Adress: 86.38.243.169

privdayz.com

/home/u866425823/domains/tejassolar.co.in/app/Providers/
Dosya Yükle :
Current File : //home/u866425823/domains/tejassolar.co.in/app/Providers/ServicesServiceProvider.php

<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\View;
use Illuminate\Support\Facades\Cache;
use App\Models\Services;

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

    /**
     * Bootstrap services.
     *
     * @return void
     */
    public function boot()
    {
        View::composer('*', function ($view) {
            $services = Cache::remember('services', 60, function () {
                return Services::select('name', 'url_slug')->get();
            });

            $view->with('services', $services);
        });
    }
}

coded by Privdayz.com - Visit https://privdayz.com/ for more php shells.