title: Laravel 5.1 View not found
body: <p>this seems to be an issue that pops up every now and then within Laravel. I was writing a CRUD controller with a view to go with it, however upon testing I got the <code>InvalidArgumentException in FileViewFinder.php line 137: View [bookingcrud.index] not found</code> error. Here is my code:</p>
  
  <p>routes.php:</p>
  
  <pre><code>Route::resource('bookingcrud', 'BookingsCrudController');
  </code></pre>
  
  <p>BookingsCrudController.php</p>
  
  <pre><code>use uasc\Http\Requests;
  use uasc\Http\Requests\CrudCreateRequest;
  use uasc\Http\Requests\CrudUpdateRequest;
  use uasc\Http\Controllers\Controller;
  
  use Auth;
  use DB;
  use Illuminate\Pagination\Paginator;
  
  use Illuminate\Http\Request;
  
  class BookingsCrudController extends Controller {
  
      public function index()
      {
          if (!Auth::check() || Auth::user()-&gt;authority &lt; 1) {
              return redirect('/login');
          }
  
          $raw = "select * from bookings";
          $bookings = DB::select($raw);
          $paginatedBookings = new Paginator($bookings, 1);
  
          return view('bookingcrud.index')-&gt;with('bookings', $paginatedBookings);
      }
  }
  </code></pre>
  
  <p>And a view located in <code>~/laravel/resources/views/bookingcrud/index.blade.php</code>
  No matter what is in this view file whether its markup from a working view or just the word "cheese" i will always get:</p>
  
  <pre><code>InvalidArgumentException in FileViewFinder.php line 140:
  View [bookingcrud.index] not found.
  </code></pre>
  
  <p>I tested the same view in a known working controller and got the same error however I tested a known working view on the same CRUD controller and it worked. I have also tried changing the directory of the view and renaming it but i'll get the same error with the "View [bookingcrud.index]" changing appropriately. I made sure the permissions of the file and directories were full for testing.</p>
  
  <p>Since first getting the error I have upgraded to 5.1.1 from 5.0.26 (which is the version the error originated on for me) and ran composer update. Also from looking at threads with the same error I have also ran artisan config:clear</p>
  
  <p>I am developing on Windows 8.1 with Homestead 2.0.17 deployed with Virtual Box.</p>
  
  <p>Any help would much appriciated at this point it is doing my head in.</p>