I created an artisan command which has to fire some API POST requests. The problem is this block in Hmvc.php
// Masking route to allow testing with PHPUnit.
if ( ! $originalRoute instanceof Route)
{
$originalRoute = new Route(new \Symfony\Component\HttpFoundation\Request());
}
It throws:
Missing argument 2 for Illuminate\Routing\Route::__construct(), called in /var/www/animekyun/vendor/teepluss/hmvc/src/Teepluss/Hmvc/Hmvc.php on line 91 and defined
I created an artisan command which has to fire some API POST requests. The problem is this block in Hmvc.php
It throws:
This is my fire method in the command:
For now I have removed that code block