.history/app/Providers/AppServiceProvider_20211025201335.php
/**
     * Bootstrap any application services.
     *
     * @return void
     */
Bootstrap any application services.
@return void
Bootstrap any application services . @return void
public function boot()
    {
        view()->composer('*',function($view){
            $user = User::where('id',Auth::id())->first();
            $donvi = DB::table('db_donvi')->get();
            $loai_sp = DB::table('db_loaisp_nckh')->get();
            $view->with(compact('user','donvi','loai_sp'));
        });
    }
public function boot ( ) { view ( ) -> composer ( '*' , function ( $ view ) { $ user = User :: where ( 'id' , Auth :: id ( ) ) -> first ( ) ; $ donvi = DB :: table ( 'db_donvi' ) -> get ( ) ; $ loai_sp = DB :: table ( 'db_loaisp_nckh' ) -> get ( ) ; $ view -> with ( compact ( 'user' , 'donvi' , 'loai_sp' ) ) ; } ) ; }
Bootstrap any application services.
Bootstrap any application services .