php - Can I safely move a Composer-created Laravel project to another directory? -


i accidently installed laravel project in user/name via composer, instead of htdocs folder.

  1. can copy/paste project htdocs folder?
  2. or should uninstall project first , make new app again via composer?

in general, projects created composer self-contained , not dependent on it's location on file system (i'm not familiar laravel in special, not have reason suspect different behaviour here). can move/copy them around without problems.

concerning worries plugins not being loadable after moving directory: have @ how composer generates it's autoloader classmaps (below short excerpt):

<?php  // autoload_classmap.php @generated composer  $vendordir = dirname(dirname(__file__)); $basedir = dirname($vendordir);  return array(     'file_iterator' => $vendordir . '/phpunit/php-file-iterator/src/iterator.php',     'file_iterator_facade' => $vendordir . '/phpunit/php-file-iterator/src/facade.php',     'file_iterator_factory' => $vendordir . '/phpunit/php-file-iterator/src/factory.php',     'phpunit_exception' => $vendordir . '/phpunit/phpunit/src/exception.php',     // ... 

as can see, autoloader not wired against fixed file system paths, classloader files auto-generated composer can moved around in file system.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -