Support the ongoing development of Laravel.io →
posted 5 years ago

Hello community! In my application i need to run a console command from the package within my controller.

The command is php artisan aimeos:jobs product/import/csv myshop, from Aimeos ecommerce package.

This command works perfect if i run it in console, but if i try Artisan::call('aimeos:jobs', ['jobs' => 'product/import/csv', 'site' => 'myshop']);

or Artisan::call('aimeos:jobs product/import/csv myshop'); in my controller nothing happens.

But If i try to run some standard Laravel commands, like Artisan::call('make:controller TestController'); it works.

Details: Laravel 5.8., PHP 7.3, Centos 7

Could someone please advise me on this? Kind regards.

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

D-Cell d-cell Joined 23 Dec 2019

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.