Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sameed_editz's avatar

implement terminal/shell behaviour in laravel

im building a vpn app admin panel and i have a page where im showing stats of a vps server through ssh using phpseclib but now i want to add an interactive full shell behaivour terminal there through which i can easily run cmds like stateful terminal/shell session

im using laravel with inertia with react and later need to implement this in livewire too but not now

1 like
2 replies
sameed_editz's avatar

@OussamaMater

vitodeploy docs:

The Console/Terminal is stateless! which means every command will run from the home directory of the chosen user and running something like cd and then another command will not go through the new directory.

this is the problem im facing currently, i had already built a headless console but i need stateful terminal

like i run

cd /www/html

then i want to execute some cmds inside it like that but this is stateless means everytime i run a cmd it will gonna run at home dir not new one so yeah...

Please or to participate in this conversation.