title: Unsupported driver MongoDB in Laravel
body: <p>I am new to <code>Mongo</code> and <code>Laravel</code>. I have been following <a href="https://github.com/jenssegers/laravel-mongodb" rel="nofollow">this</a> tutorial and when I call <code>all</code> method in my controller, it gives me the error <strong>Unsupported driver [mongodb]</strong>
  Below is my controller and model
  Controller:</p>
  
  <pre><code>class homeController extends Controller
  {
      /**
       * Display a listing of the resource.
       *
       * @return \Illuminate\Http\Response
       */
      public function index()
      {
          $users  = \App\Homemodel::all();
        $config_items = \App\Homemodel::getData();
        echo "&lt;pre&gt;";
        print_r($users);
      }
  </code></pre>
  
  <p>Model</p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Jenssegers\Mongodb\Model as Eloquent;
  
  class Homemodel extends Eloquent
  {
  
  
      protected $connection   =   'mongodb';
  
      protected $collection   =   'user';
  
  
  
      public static function getData() {
          echo "in all function";
      }
  
  
  }
  </code></pre>