Closed justin22 closed 5 years ago
@justin22 You need to add the command to your $commands
array in Console/Kernel.php
.
Like this:
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Torann\Currency\Console\Manage as CurrencyManage;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
...
CurrencyManage::class,
...
];
...
I'm trying to call
currency:manage add <currency>
from controller but I'm getting the following exception.Controller code
Artisan::call('currency:manage', ['action' => 'add', 'currency' => 'EUR']);
dependecies
php artisan help currency:manage