app/Providers/AppServiceProvider.php
/**
     * Bootstrap any application services.
     *
     * @return void
     */
Bootstrap any application services.
@return void
Bootstrap any application services . @return void
public function boot()
    {
        $loaisp = loaiSanPham::all();
        $nhasx = nhaSanXuat::all();
        $nhacc = nhaCungCap::all();
        $sanpham = sanPham::all();
        $donhang = donDatHang::all();
        $ctdh = chiTietDonDatHang::all();
        $pbh = phieuBaoHanh::all();
        View::share('loaisp', $loaisp);
        View::share('nhasx', $nhasx);
        View::share('nhacc', $nhacc);
        View::share('sanpham', $sanpham);
        View::share('donhang', $donhang);
        View::share('ctdh', $ctdh);
        View::share('pbh', $pbh);
    }
public function boot ( ) { }
Bootstrap any application services.
Bootstrap any application services .
// //        $loaisp = loaiSanPham::all(); //        $nhasx = nhaSanXuat::all(); //        $nhacc = nhaCungCap::all(); //        $sanpham = sanPham::all(); //        $donhang = donDatHang::all(); //        $ctdh = chiTietDonDatHang::all(); //        $pbh = phieuBaoHanh::all(); // // //        View::share('loaisp', $loaisp); //        View::share('nhasx', $nhasx); //        View::share('nhacc', $nhacc); //        View::share('sanpham', $sanpham); //        View::share('donhang', $donhang); //        View::share('ctdh', $ctdh); //        View::share('pbh', $pbh);