[2 min installs] Laravel on Ubuntu

Better Stack Team
Updated on August 29, 2022

Here is how to install Laravel 20.04 on Ubuntu in under two minutes:

Step 1 - Install Laravel package

For this step, you will need a composer.

If you have composer installed, run the following command to install Laravel:

composer global require "laravel/installer"
Copied!

Step 2 - Create a new Laravel project

Now, create a new Laravel project by running the following command. Don’t forget to replace the example-app with the actual name of your project.

laravel new example-app
Copied!

Step 3 - Run the project

After the project has been created, start Laravel's local development server using the Laravel's Artisan CLI serve command:

cd example-app && php artisan serve
Copied!

That’s it

Once you have started the Artisan development server, your application will be accessible in your web browser at http://localhost:8000

Check Uptime, Ping, Ports, SSL and more.
Get Slack, SMS and phone incident alerts.
Easy on-call duty scheduling.
Create free status page on your domain.
Got an article suggestion? Let us know
Next article
[2 min installs] PHP on Ubuntu
Licensed under CC-BY-NC-SA

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.