I'm trying to use the scheduler for the first time to call a method:
protected function schedule(Schedule $schedule)
{
$schedule->call('MyClassName@myMethodName')
->everyMinute();
}
The class I'm calling is defined in App/Http/Controller
this way:
namespace App\Http\Controllers;
use App\Http\Requests;
use App\Models\Reaction;
use View;
use Request;
class MyClassNameController extends Controller {
But each time the scheduler runs, it gaves:
[ReflectionException]
Class MyClassName does not exist
How could I fix this ?