lundi 1 août 2016

Queues Dispatch method in Laravel Throws error

So this is my line of code

public function getVisitedCountriesCountAttribute()
{
    $this->dispatch(new CalculateTotalCountriesVisited($this));

    return $this->total_countries;
}

here the dispatch method throws an error saying

Call to undefined method Illuminate\Database\Query\Builder::dispatch() (View: /Users/mereeva/sites/rdb-ws/resources/views/users/trips/status.blade.php)

I don't seem to understand what could be the reason behind this. i followed all the steps in http://ift.tt/1RYWCC0

Any help will be appreciated. Thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire