Added Suggestion module on pages

This commit is contained in:
cuneytsenturk
2018-05-25 16:57:58 +03:00
parent 2b9721195d
commit 272b46e8a9
6 changed files with 110 additions and 1 deletions

View File

@ -5,9 +5,12 @@ namespace App\Http\ViewComposers;
use Auth;
use App\Utilities\Updater;
use Illuminate\View\View;
use App\Traits\Modules;
class Header
{
use Modules;
/**
* Bind data to the view.
*
@ -57,6 +60,8 @@ class Header
$updates = count(Updater::all());
$this->loadSuggestions();
$view->with([
'user' => $user,
'notifications' => $notifications,