title: PHP Fatal error: Cannot redeclare Composer\Autoload\includeFile()
body: <p>The following problem appeared after installing this:</p>
  
  <pre><code>composer require merujan99 / laravel-video-embed: dev-master
  </code></pre>
  
  <p>I got this error message:</p>
  
  <pre><code> @php artisan package:discover
   PHP Fatal error:  Cannot redeclare Composer\Autoload\includeFile()(previously declared in /var/www/cain/vendor/composer/ClassLoader.php:442)  in /var/www/cain/config/vendor/composer/ClassLoader.php on line 445 
   Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255
  </code></pre>
  
  <p>when i delete the file</p>
  
  <pre><code>vendor/composer/ClassLoader.php
  </code></pre>
  
  <p>or</p>
  
  <pre><code>config/vendor/composer/ClassLoader.php
  </code></pre>
  
  <p>and then I put:</p>
  
  <pre><code>composer install
  </code></pre>
  
  <p>I get this new error message</p>
  
  <pre><code>@php artisan package:discover
  PHP Fatal error:  Cannot declare class ComposerAutoloaderInit7004d442aef5fba74e99655522408450, because the name is already in use in /var/www/cain/config/vendor/composer/autoload_real.php on line 5
  Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255
  </code></pre>
  
  <p>this is very weird, I have 2 computers, in the first</p>
  
  <blockquote>
    <p>(Composer version @package_branch_alias_version@ (1.0.0-beta2) 2016-03-27,php 7.2)</p>
  </blockquote>
  
  <p>one I did not have problems when installing the extension and when doing "composer install" I did not get any error and laravel works normal</p>
  
  <p>in the second computer</p>
  
  <blockquote>
    <p>(Composer version 1.6.5 2018-05-04, php 7.2) </p>
  </blockquote>
  
  <p>when cloning the project through git I get that error</p>