Getting Started with Laravel 5.4 and MongoDB
Markus Tripp


When I use Mongo::get() in routes/web.php as shown above everything works fine, but inside my controller it returns: FatalThrowableError Class ‘App\Mongo’ not found .

I did add: use App\Mongo; in my controller.

Anyway thanks for this article, if I’m still stuck I can put my app logic inside routes :P (And yes I’m a bit new to laravel)