php artisan serve kill code example Example: kill laravel server sudo kill $(sudo lsof -t -i:port_number)