title: Laravel 5 View is loading from cache and new code not affecting
body: <p>I have been working in my Vagrant development environment and the Laravel 5 app is working fine. When I uploaded the app to my DO Ubuntu 14.14 droplet, its loading the View from cache and when I update the view blade template, its not affecting the site.</p>
  
  <p>I've searched for solution but didn't found anything. Now sure how to stop caching the view or refresh the cache.</p>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>ErrorException in 61093154cb848bf7f33155b09ac70c93 line 132: Undefined property: Illuminate\Database\Eloquent\Collection::$profile_picture (View: /var/www/demo/property/public/resources/views/user/account/acc.blade.php)
  
      in 61093154cb848bf7f33155b09ac70c93 line 132
      at CompilerEngine-&gt;handleViewException(object(ErrorException), '1') in PhpEngine.php line 43
      at PhpEngine-&gt;evaluatePath('/var/www/demo/property/public/storage/framework/views/61093154cb848bf7f33155b09ac70c93', array('__env' =&gt; object(Factory), 'app' =&gt; object(Application), 'errors' =&gt; object(ViewErrorBag), 'page_title' =&gt; 'User Account', 'profile' =&gt; object(Collection))) in CompilerEngine.php line 57
      at CompilerEngine-&gt;get('/var/www/demo/property/public/resources/views/user/account/acc.blade.php', array('__env' =&gt; object(Factory), 'app' =&gt; object(Application), 'errors' =&gt; object(ViewErrorBag), 'page_title' =&gt; 'User Account', 'profile' =&gt; object(Collection))) in View.php line 136
      at View-&gt;getContents() in View.php line 104
      at View-&gt;renderContents() in View.php line 78
      at View-&gt;render() in Response.php line 44
      at Response-&gt;setContent(object(View)) in Response.php line 202
      at Response-&gt;__construct(object(View)) in Router.php line 1198
      at Router-&gt;prepareResponse(object(Request), object(View)) in Router.php line 702
      at Router-&gt;Illuminate\Routing\{closure}(object(Request))
      at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in Authenticate.php line 47
      at Authenticate-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request))
      at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
      at Pipeline-&gt;then(object(Closure)) in Router.php line 703
      at Router-&gt;runRouteWithinStack(object(Route), object(Request)) in Router.php line 670
      at Router-&gt;dispatchToRoute(object(Request)) in Router.php line 628
      at Router-&gt;dispatch(object(Request)) in Kernel.php line 214
      at Kernel-&gt;Illuminate\Foundation\Http\{closure}(object(Request))
      at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 43
      at VerifyCsrfToken-&gt;handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 17
      at VerifyCsrfToken-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 55
      at ShareErrorsFromSession-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 61
      at StartSession-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 36
      at AddQueuedCookiesToResponse-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 40
      at EncryptCookies-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
      at CheckForMaintenanceMode-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request))
      at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
      at Pipeline-&gt;then(object(Closure)) in Kernel.php line 115
      at Kernel-&gt;sendRequestThroughRouter(object(Request)) in Kernel.php line 84
      at Kernel-&gt;handle(object(Request)) in index.php line 53
  </code></pre>
  
  <p>After the error, I've updated the line 132 but its not affecting. I tried by removing all content from the acc.blade.php file but still I get the error.</p>