Updates
This commit is contained in:
21
app/Http/ViewComposers/UpdateNotification.php
Normal file
21
app/Http/ViewComposers/UpdateNotification.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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]);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user