/** * Bind data to the view * * @param View $view * @return void */ public function compose(View $view) { $view->with('count', ['users' => $this->users->count(), 'tasks' => $this->tasks->count()]); }
/** * Bind data to the view * * @param View $view * @return void */ public function compose(View $view) { $view->with('count', ['users' => $this->users->count(), 'tasks' => $this->tasks->count()]); }