I am new in laravel development,actually i tried to setup laravel in my local environment of windows.
I installed composer in my C:// drive, created environment variable for composer, but when I C:\xampp\htdocs>composer create-project laravel/laravel laravel_new run this command in htdocs it shows error like:
[InvalidArgumentException]
Composer could not find the config file: C:\composer
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting S tarted" section
also when I tried php artisan serve
C:\xampp\htdocs\laravel_new>php artisan serve
PHP Warning: require(C:\xampp\htdocs\laravel_new/vendor/autoload.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\laravel_new\artisan on line 18
Warning: require(C:\xampp\htdocs\laravel_new/vendor/autoload.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\laravel_new\artisan on line 18
PHP Fatal error: Uncaught Error: Failed opening required 'C:\xampp\htdocs\laravel_new/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\laravel_new\artisan:18
Stack trace:
#0 {main} thrown in C:\xampp\htdocs\laravel_new\artisan on line 18
Fatal error: Uncaught Error: Failed opening required 'C:\xampp\htdocs\laravel_new/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\laravel_new\artisan:18
Stack trace:
#0 {main} thrown in C:\xampp\htdocs\laravel_new\artisan on line 18
it shows error like above. What should I do to complete my setup?
terminalusing commandcomposer? - Al-Amin Sarkercomposerinstall is not properly. Uninstall then install composer again - A.A Nomancomposer.jsonfile. Could you check if the laravel installer has created one for you? If so, runcomposer installin your project path. If that does not fail, php atrisan should work. - Daantje