Running First Laravel PHP Project On Localhost composer create-project -prefer-dist laravel/laravel laravel-tutorial It will create the Laravel project in the current directory. Run the following command in the command prompt to create a new Laravel PHP project named laravel-tutorial (you can use any name) using the composer. composer global require laravel/installer Creating First Laravel PHP Project
Run the following command in the command prompt to download the Laravel installer on your computer using the composer. It also shows the installed version of the composer. If you have installed the composer successfully, a screen similar to below will be displayed. Run the following command in the command prompt to check whether or not you have successfully installed the composer on your computer.
If you have not installed the composer, visit the following URL to download and install the composer. You need to install the composer before installing Laravel. Laravel uses the Composer to manage its dependencies. ComposerĬomposer is a dependency manager for PHP. *Note: Above PHP extensions might be pre-installed on your system.
It is usually achieved by identifying the username and password of the user.