Getting Started with Laravel 5.4 and MongoDB
Markus Tripp
1559

Hello

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)

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.