arpit Pathak
arpit Pathak

Reputation: 47

Laravel Setup Isshue and composer Isshue on windows

Not able to create new laravel project.

 C:\Users\Devil>composer global require "laravel/installer"
Changed current directory to C:/Users/Devil/AppData/Roaming/Composer


  [ErrorException]
  file_put_contents(): Filename cannot be empty


global <command-name> [<args>]...


C:\Users\Devil>laravel new blog
'laravel' is not recognized as an internal or external command,
operable program or batch file.

Please Help Me on this

Upvotes: 1

Views: 328

Answers (1)

Prince Lionel N&#39;zi
Prince Lionel N&#39;zi

Reputation: 2588

1 - Install composer. In case it is not yet installed here is the easiest way to install composer on windows

2 - Go to your folder where you save your projects through the command line and run this command: composer create-project --prefer-dist laravel/laravel project-name . This will create a new folder project-name

3 - Access the project-name folder through the command line and run php artisan serve

4 - Open your browser and access http://localhost:8000

Upvotes: 1

Related Questions