title: "Failed to clear cache. Make sure you have the appropriate permissions" in Laravel 5.7
body: <p>I think I am facing cache issue on Laravel </p>
  
  <p>I have the file </p>
  
  <p><img src="https://i.imgur.com/MhPUI6w.png" alt=""></p>
  
  <p>I kept getting </p>
  
  <p><img src="https://i.imgur.com/PEVAnHf.png" alt=""></p>
  
  <blockquote>
    <p>View [layouts.fe.wedding-us.index] not found.</p>
  </blockquote>
  
  <p>I've tried clear the cache </p>
  
  <pre><code>composer dumpauto
  Do not run Composer as root/super user! See https://getcomposer.org/root for details
  Generating autoload files
  &gt; Illuminate\Foundation\ComposerScripts::postAutoloadDump
  &gt; @php artisan package:discover
  Discovered Package: nesbot/carbon
  Discovered Package: laravel/slack-notification-channel
  Discovered Package: laravel/nexmo-notification-channel
  Discovered Package: laravelcollective/remote
  Discovered Package: htmlmin/htmlmin
  Discovered Package: intervention/image
  Discovered Package: laravelcollective/html
  Package manifest generated successfully.
  </code></pre>
  
  <hr>
  
  <pre><code>php artisan view:clear &amp;&amp; php artisan cache:clear
  Compiled views cleared!
  Failed to clear cache. Make sure you have the appropriate permissions.
  </code></pre>
  
  <p>but I got </p>
  
  <blockquote>
    <p>Failed to clear cache. Make sure you have the appropriate permissions.</p>
  </blockquote>
  
  <p>Not sure why it complaining about permission since I ran this command to allow all already </p>
  
  <blockquote>
    <p>sudo chmod -R 777 storage/ bootstrap/</p>
  </blockquote>
  
  <p>How can I go about fixing this?</p>