Configuration FilesĪll of the configuration files for the Laravel framework are stored in the config directory. The index.php in this directory serves as the front controller for all HTTP requests entering your application. More robust local development options are available via Homestead and Valet.Īfter installing Laravel, you should configure your web server's document / web root to be the public directory. This command will start a development server at php artisan serve If you have PHP installed locally and you would like to use PHP's built-in development server to serve your application, you may use the serve Artisan command. For instance, laravel new blog will create a directory named blog containing a fresh Laravel installation with all of Laravel's dependencies already installed: laravel new blog Via Composer Create-ProjectĪlternatively, you may also install Laravel by issuing the Composer create-project command in your terminal: composer create-project -prefer-dist laravel/laravel blog "5.8.*" Local Development Server Once installed, the laravel new command will create a fresh Laravel installation in the directory you specify. Windows: %USERPROFILE%\AppData\Roaming\Composer\vendor\bin.macOS and GNU / Linux Distributions: $HOME/.composer/vendor/bin.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |