Updates
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Model\Update\BarNotification;
|
||||
use Illuminate\Queue\Events\JobFailed;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Queue;
|
||||
use View;
|
||||
use Queue;
|
||||
use Illuminate\Queue\Events\JobFailed;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
@@ -22,13 +22,13 @@ class AppServiceProvider extends ServiceProvider
|
||||
public function register()
|
||||
{
|
||||
$this->app->bind('Illuminate\Contracts\Auth\Registrar');
|
||||
require_once __DIR__.'/../Http/helpers.php';
|
||||
require_once __DIR__ . '/../Http/helpers.php';
|
||||
}
|
||||
|
||||
public function boot()
|
||||
{
|
||||
Queue::failing(function (JobFailed $event) {
|
||||
loging('Failed Job - '.$event->connectionName, json_encode($event->data));
|
||||
loging('Failed Job - '.$event->connectionName, json_encode($event->data));
|
||||
$failedid = $event->failedId;
|
||||
//\Artisan::call('queue:retry',['id'=>[$failedid]]);
|
||||
});
|
||||
@@ -58,7 +58,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
\View::composer('themes.default1.update.notification', function () {
|
||||
$notification = new BarNotification();
|
||||
$not = [
|
||||
'notification' => $notification->where('value', '!=', '')->get(),
|
||||
'notification' => $notification->where('value','!=','')->get(),
|
||||
];
|
||||
view()->share($not);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user