title: laravel 5.1 Model not found
body: <p>I spend like 4 hours figuring this out but I'm unable to solve it.
  I'm using laravel 5.1</p>
  
  <p>I wish to view the owner of an organisation or the other way arround, check the organisations where a user is owner of.</p>
  
  <p>I'm reciving the following error from my webserver:</p>
  
  <pre><code>FatalErrorException in Model.php line 893:
  Class 'app\models\Organisation' not found
  in Model.php line 893
  at FatalErrorException-&gt;__construct() in HandleExceptions.php line 133
  at HandleExceptions-&gt;fatalExceptionFromError() in HandleExceptions.php line 118
  at HandleExceptions-&gt;handleShutdown() in HandleExceptions.php line 0
  at Model-&gt;hasMany() in User.php line 19
  at User-&gt;owner_of() in TestController.php line 24
  at TestController-&gt;index() in Controller.php line 256
  at call_user_func_array:{/home/shifts/public_html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:256}() in Controller.php line 256
  at Controller-&gt;callAction() in ControllerDispatcher.php line 164
  at ControllerDispatcher-&gt;call() in ControllerDispatcher.php line 112
  at ControllerDispatcher-&gt;Illuminate\Routing\{closure}() in Pipeline.php line 139
  </code></pre>
  
  <p>My folder structure is the following:</p>
  
  <pre><code>- App/
  -- Models/
  --- Organisation.php
  --- User.php
  </code></pre>
  
  <p><strong>User Model</strong></p>
  
  <pre><code>&lt;?php
  
  namespace app\models;
  
  use Illuminate\Database\Eloquent\Model;
  
  class User extends Model {
  
      protected $table = 'users';
      public $timestamps = true;
  
      public function owner_of()
      {
          return $this-&gt;hasMany('Organisation', 'owner_id');
      }    
  }
  </code></pre>
  
  <p><strong>Organisation Model</strong></p>
  
  <pre><code>&lt;?php
  
  namespace app\models;
  
  use Illuminate\Database\Eloquent\Model;
  
  class Organisation extends Model {
  
      protected $table = 'organisations';
      public $timestamps = true;
  
      public function owner()
      {
          return $this-&gt;belongsTo('App\Models\User','owner_id','id');
      }
  }
  </code></pre>
  
  <p><strong>Test Controller (code I'm executing)</strong></p>
  
  <pre><code>&lt;?php 
  
  namespace App\Http\Controllers;
  use App\Http\Controllers\Controller;
  use App\Models\User;
  use App\Models\Organisation;
  use View;
  use Debugbar;
  
  class TestController extends Controller {
  
    /**
     * Display a listing of the resource.
     *
     * @return Response
     */
    public function index()
    {
      $site = url('test');
      echo "testpage &lt;a href=\"$site\"&gt;Reload&lt;/a&gt;";
      $u = User::find(1);
      var_dump($u);
      echo "&lt;br /&gt;&lt;br /&gt;";
      var_dump($u-&gt;owner_of());
      echo "&lt;br /&gt;&lt;br /&gt;";
      $o = Organisation::find(1);
      echo "&lt;br /&gt;&lt;br /&gt;";
      var_dump($o);
      echo "&lt;br /&gt;&lt;br /&gt;";
  
      var_dump($o-&gt;owner());
    }
  }
  </code></pre>
  
  <p><strong>users scheme</strong></p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Database\Schema\Blueprint;
  use Illuminate\Database\Migrations\Migration;
  
  class UsersAccess extends Migration
  {
      public function up()
      {
          Schema::create('users_roles', function(Blueprint $table) {
              $table-&gt;increments('id');
              $table-&gt;integer('user_id');
              $table-&gt;integer('ex_id');
              $table-&gt;string('obj',3);
              $table-&gt;integer('granted');
              $table-&gt;timestamps();
          });
      }
  }
  </code></pre>
  
  <p><strong>organisations scheme</strong></p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Database\Migrations\Migration;
  use Illuminate\Database\Schema\Blueprint;
  
  class CreateOrganisationsTable extends Migration {
  
      public function up()
      {
          Schema::create('organisations', function(Blueprint $table) {
              $table-&gt;increments('id');
              $table-&gt;integer('owner_id');
              $table-&gt;string('name');
              $table-&gt;text('description');
              $table-&gt;timestamps();
              $table-&gt;softDeletes();
          });
      }
  }
  </code></pre>
  
  <p>Can someone point me out what I'm dooing wrong? I'm staring blind on this issue.
  (this is the first time I'm trying to make a project in laravel 5.x)</p>