Bind data to the view.

@param  View $view

@return void
190346
public function compose(View $view)
    {
        $menu = \Menu::getMenu('adminMenu');

        $menu->link('admin.dashboard', function (Link $link) {
            $link->name = 'Admin Dashboard';
            $link->url  = route('admin.index');
        });
        $menu->link('admin.artisan', function (Link $link) {
            $link->name = 'Artisan';
            $link->url  = route('admin.artisan.index');
        });
        $menu->dropDown('admin.users', 'Users', function (DropDown $dropDown) {
            $dropDown->link('admin.users.index', function (Link $link) {
                $link->name = 'List Users';
                $link->url  = route('admin.users.index');
            });
            $dropDown->link('admin.users.create', function (Link $link) {
                $link->name = 'Add User';
                $link->url  = route('admin.users.create');
            });
        });
    }
237675
public function setViewParams($view)
    {
        
        foreach ($this->url as $url) {
            if(isset($view->params['urls']) && is_array($view->params['urls'])){
                $view->params['urls'] = $this->MenuMerge($view->params['urls'],$url);
            }else{
                $view->params['urls'] = $url;
            }
            
        }
        
        if($module = $this->getModule()){
            $view->params['urls'][$module]['active']=true;
        }
    }
862649
public function dropAndCreateView(View $view)
    {
        $this->tryMethod('dropView', $view->getQuotedName($this->_platform));
        $this->createView($view);
    }
223351
public function compose(View $view)
    {
        if (Session::has('multi_language_enabled')) {
            $languages = Session::get('languages');
            $defaultLanguage = Session::get('default_language');
            $langId = request()->get('language_id', $defaultLanguage->id);
            $isDefaultLang = ($defaultLanguage->id == $langId) ? true : false;
        }
        $view->withDefaultLanguage($defaultLanguage)
            ->withLanguages($languages)
            ->withIsDefaultLang($isDefaultLang);
    }
1180003
final public function setView(View $view) {
        $this->view = $view;
        $this->publicAssetsPath = ROOT . 'public' . DIRECTORY_SEPARATOR . '.assets' . DIRECTORY_SEPARATOR;
        return $this;
    }
1172417
public static function render($view, $data = array()){

        if( is_array($view) ){

            foreach( $view as $item ){
                self::render($item, $data);
            }

            return;
        }

        echo self::get($view, $data);
    }
655798
public function compose(View $view)
    {
        /**
         * @var  \Carbon\Carbon                  $start
         * @var  \Carbon\Carbon                  $end
         * @var  \Illuminate\Support\Collection  $range
         */
        extract(DateRange::getCurrentMonthDaysRange());

        $view->with('countriesRatio', $this->calculateCountriesPercentage(
            $this->getCountriesCountFromSessions($start, $end)
        ));
    }
868598
public function setView($view)
	{
		$this->view = $view;

		// construct the view if needed
		if ( ! $this->view instanceof View)
		{
			$this->view = $this->viewManager->forge($this->view);
		}
	}
157930
public function compose(View $view)
    {
        /**
         * @var  \Carbon\Carbon                  $start
         * @var  \Carbon\Carbon                  $end
         * @var  \Illuminate\Support\Collection  $range
         */
        extract(DateRange::getCurrentMonthDaysRange());

        $view->with('devicesRatio',  $this->getDevicesFromSessions($start, $end));
    }
262011
public function compose(View $view)
    {
        $view->withCacheDrivers($this->cacheDrivers);
        $view->withMailDrivers($this->mailDrivers);
        $view->withQueueDrivers($this->queueDrivers);
    }
703419
public function view($view, array $data = array())
    {
        $this->view = $view;

        $this->viewData = $data;

        return $this;
    }
1031027
public function compose(View $view)
    {
        $notifications = Auth::user()
            ->unreadNotifications
            ->where('type', DashboardNotification::class);

        $view->with('notifications', $notifications);
    }
368177
public function compose(View $view)
    {

        $view->with('esi_status', EsiStatus::latest()->first());
        $view->with('is_rate_limited', $this->isEsiRateLimited());
        $view->with('rate_limit_ttl', $this->getRateLimitKeyTtl());
    }
1143929
public function compose(View $view)
    {
        /** @var RememberedFileBag $rememberedFiles */
        $rememberedFiles = $this->session->get('_remembered_files', new RememberedFileBag());
        $view->with('rememberedFiles', $rememberedFiles->toFileBag());
    }
997950
public function composeWithAllRouteNames(View $view)
    {
        $routes = $this->getAllRouteNames();

        foreach ($routes as $action => $routeName) {
            $view->with("{$action}Route", $routeName);
        }
    }
472163
public function compose(View $view)
    {
        $countries = Country::all();
        $options = Collection::make();
        $symbolOption = Collection::make();
        foreach ($countries as $country) {
            $options->put(
                $country->currency_code, 
                ['id' => $country->currency_code,
                'name' => $country->currency_code]
            );

            if (!empty($country->currency_symbol)) {
                $symbolOption->put(
                    $country->currency_symbol, 
                    ['id' => $country->currency_symbol,
                    'name' => $country->currency_symbol]
                );
            }
        }
        $statusOptions = Collection::make([['id' => 'ENABLED', 'name' => 'Enabled'], ['id' => 'DISABLED', 'name' => 'Disabled']]);

        $view
            ->with('codeOptions', $options)
            ->with('symbolOptions', $symbolOption)
            ->with('statusOptions', $statusOptions);
    }
1341273
public function compose(View $view)
    {
        $user = Auth::user();

        $view->withRequest($this->request)
            ->withNavigationSections($this->laramanagerNavigationSection->with('links')->get())
            ->withUser($user);
    }