In Laravel, I\'m trying to call $input = Request::all(); on a store() method in my controller, but I\'m getting the following error:
also it happens when you import following library to api.php file. this happens by some IDE's suggestion to import it for not finding the Route Class.
just remove it and everything going to work fine.
use Illuminate\Routing\Route;
update:
seems if you add this library it wont lead to error
use Illuminate\Support\Facades\Route;