Stop laravel server with command line interface

You can kill the port

sudo kill $(sudo lsof -t -i:port_number)

Like if it is running on 8000, you can do below

sudo kill $(sudo lsof -t -i:8000)

If above not worked (because frozen or unresponsive process may not respond), add parameter -9 to kill command like this:

sudo kill -9 $(sudo lsof -t -i:8000)

Easier and you can view all processes about artisan :)

ps aux | grep artisan
# get the PID from the list
kill <PID NUMBER>