<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use App\Models\Softseting;

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

    /**
     * Bootstrap services.
     *
     * @return void
     */
    public function boot()
    {
        view()->composer('*', function ($view) {
            $Parameter = Softseting::all()->first();
            $view->with('parameter', $Parameter);
            
        });
    }
}
