mercredi 28 juin 2017

Call Artisan Commands via Code

In my Laravel application, I run

php artisan languages:export

I got a csv file to export base on my languages table.

BUT when I did in my code

$export = Artisan::call('languages:export');

I kept getting 0 as my result, and no file exported.

What did I do wrong ?

How would one go about and call artisan commands via code ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire