===================================================================
Open your terminal using Ctrl+Alt+T and type the following commands
Step 1: Install Laravel
composer global require "laravel/installer"Step 2: Add composer to path to access laravel globally
export PATH="~/.config/composer/vendor/bin:$PATH"Step 3: Create a new Laravel application
laravel new blogStep 4: Install missing packages and their dependencies
cd blog
composer installStep 5: Test the application
php artisan serveOpen a web browser and visit localhost:8000 to see the laravel welcome page
Step 6: Stop server
Terminate php server in terminal by pressing Ctrl+C
Thus you have successfully installed laravel globally.
0 Comments
Post a Comment