Thursday, March 16, 2017

ReflectionException Laravel Console Command

I'm trying to perform a Curl method into a Laravel console command, but I'm getting ReflectionException. I've already tried composer update && composer dump-autoload but the problem persists.

My code is like:

<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use Ixudra\Curl\Facades\Curl;

class IndexOrders extends Command
{
    protected $signature = 'my:command';
    protected $description = 'Description';

    public function __construct()
    {
        parent::__construct();
    }

    public function handle()
    {
        Curl::doSomething();
    }
}



via Luiz

Advertisement