Files
faveo/app/Http/ViewComposers/UpdateNotification.php
2016-12-13 13:14:54 +00:00

21 lines
415 B
PHP

<?php
namespace App\Http\ViewComposers;
use App\Model\Update\BarNotification;
use Illuminate\View\View;
class UpdateNotification
{
public function __construct()
{
}
public function compose(View $view)
{
$notification = new BarNotification();
$notice = $notification->where('value', '!=', '')->select('value')->get();
$view->with(['notification' => $notice]);
}
}