This commit is contained in:
Manish Verma
2016-12-13 18:18:25 +05:30
parent fc98add11c
commit 2d8e640e9b
2314 changed files with 97798 additions and 75664 deletions

View File

@@ -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);
});