title: In ProviderRepository.php line 208: Class 'Zizaco\Entrust\EntrustServiceProvider' not found error in laravel
body: <p>I try to build Administration Module with Role-based permissions using Entrust package.
  then update composer.json file as follow:</p>
  
  <pre><code> "require": {
          "php": "&gt;=7.1.3",
          "fideloper/proxy": "~4.0",
          "laravel/framework": "5.5.*",
          "laravel/tinker": "~1.0",
          "tymon/jwt-auth": "1.0.0-rc.1",
          "zizaco/entrust": "dev-master"
  },
  </code></pre>
  
  <p>after run <code>composer update</code> command 
  After open up <code>config/app.php</code>, find the <strong>providers array and add the entrust provider:</strong></p>
  
  <pre><code>Zizaco\Entrust\EntrustServiceProvider::class,
  </code></pre>
  
  <p>Find the <strong>aliases array and add the entrust facades:</strong></p>
  
  <pre><code>'Entrust'   =&gt; Zizaco\Entrust\EntrustFacade::class,
  </code></pre>
  
  <p>Run the command below from the command line to publish the package config file.</p>
  
  <pre><code>php artisan vendor:publish
  </code></pre>
  
  <p>Then get following error:</p>
  
  <blockquote>
    <p>In ProviderRepository.php line 208:</p>
    
    <p>Class 'Zizaco\Entrust\EntrustServiceProvider' not found</p>
  </blockquote>
  
  <p>How to solve this error??
  I also try <code>composer dump-autoload</code> command.But cannot solve this error.
  then get following error.</p>
  
  <blockquote>
    <p>In ProviderRepository.php line 208:</p>
    
    <p>Class 'Zizaco\Entrust\EntrustServiceProvider' not found</p>
    
    <p>Script @php artisan package:discover handling the post-autoload-dump
    event returned with error code 1</p>
  </blockquote>
  
  <p>please help me. Thanks in advance.</p>