You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My goal is to insert in the database the instance of the model so another application in Laravel consumes the model inserted in the Jobs table.
I can see the model in the database but when I call
php artisan queue:work --once
an error appears "Call to undefined method fire".
When I add fire method to the Job the database entrance is procesed.
public function fire()
{
$this->handle();
}
Why fire thas not exists?
Laravel is in version 5.7 and I'm using Torch 5.5.
Incompatibilty problem?
Is it correct what I am saying?
Any suggestions or comments are welcomed.
Thanks in advance
The text was updated successfully, but these errors were encountered:
use Illuminate\Database\Capsule\Manager as Capsule;
use Illuminate\Events\Dispatcher;
use Illuminate\Container\Container;
use Illuminate\Support\Facades\Facade;
$capsule = new Capsule;
Hello,
I'm trying to add a database connection to Queue component. Something like:
I created the table like Laravel does. I'm trying to do the same as Laravel, that is,
WorklistOrderJob :: dispatch ($order);
with this code
Where Orden is a Eloquent Model.
My goal is to insert in the database the instance of the model so another application in Laravel consumes the model inserted in the Jobs table.
I can see the model in the database but when I call
an error appears "Call to undefined method fire".
When I add fire method to the Job the database entrance is procesed.
Why fire thas not exists?
Laravel is in version 5.7 and I'm using Torch 5.5.
Incompatibilty problem?
Is it correct what I am saying?
Any suggestions or comments are welcomed.
Thanks in advance
The text was updated successfully, but these errors were encountered: