title: Laravel Nova not loading any resources, blade error
body: <p>Nova was working for me before. I started working on the front-end, and when coming back to Nova it suddenly doesn't work anymore. I can log in, but then it shows the loading animation for all resources and it's not loading data.</p>
  
  <p>I get this error:</p>
  
  <pre><code>Trying to get property of non-object (View: longpath/location.blade.php)
  </code></pre>
  
  <p>In <code>location.blade.php</code></p>
  
  <pre><code>@extends('app')
  
  @section('title')
      {{ $location-&gt;title }}
  @endsection
  
  @section('content')
  
  @endsection
  </code></pre>
  
  <p>The weird thing is that on the front-end, location.blade.php loads perfectly fine, as I pass the <code>$location</code> variable in the <code>LocationController</code>. No errors and nothing in the error log. In <code>LocationController</code>:</p>
  
  <pre><code>$location = Location::
    where('id', $this-&gt;location_id)
    -&gt;first();
  
  return view('location', [
    'location' =&gt; $location
  ]);
  </code></pre>
  
  <p>So it shows the error, and this error is in the logs as well. If I comment out <code>{{ $location-&gt;title }}</code>, it doesn't show the error anymore, but it's still not loading any data, and nothing shows up in the error log. So I have no clue why it's not loading any data. It's also a mystery to me why a (front-end) Blade template would generate an error in Nova, while it works perfectly fine on the front-end.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>If I comment out this specific route in routes/web, Nova works again. Not sure why this route impacts Nova?</p>
  
  <pre><code>Route::get('/{location_id}/{location_title}', 'LocationController@viewLocation');
  </code></pre>
  
  <p>If I add the route back in, in my console I get:</p>
  
  <pre><code>TypeError: Cannot read property 'length' of undefined
  </code></pre>