Files
faveo/app/Http/ViewComposers/UpdateNotification.php
Manish Verma 2d8e640e9b Updates
2016-12-13 18:18:25 +05:30

22 lines
419 B
PHP

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