DEV Community

Chidiebere Chukwudi
Chidiebere Chukwudi

Posted on • Updated on • Originally published at

Port 8080 already in use (laravel)

You get this kind of error for one reason: you are trying to run an app, example, a laravel project on the same port.

So here are two quick simple solutions :

A. Close the terminal where you initially ran php artisan serve by pressing ctrl + c then from your terminal, cd into the root folder of your OTHER laravel project, then run php artisan serve again.


B. CD into your OTHER laravel app root directory. Then define another port in your terminal by typing the command php artisan serve --port=8081

Now, you have two different apps running on two ports: and

I hope this helps.

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.