aralvi143's avatar

Hide command prompt in laravel desktop application

Hi, i have developed a laravel desktop application and it is working fine. when i run my laravel desktop application php artisan serve command automatically starts in the command prompt and it shows on the desktop but i do not require to be shown it should run in the background. guide me for this thank you in advance

0 likes
14 replies
Sinnbeck's avatar

Can you give us a little to go by? It showing up makes little sense if it is something like electron. And how did you make it a desktop application? Perhaps show a screenshot ?

Sinnbeck's avatar

@aralvi143 so inno setup just runs a set of commands I guess? Can you show how it is set up?

Tray2's avatar

So if I understand you correctky you use a browser to open your application but you need to run php artisan serve after every reboot and you want it to start automatically?

I suggest you install a proper webserver like Apache2 or nginx and serve you app from there. Not knowing what OS you are using makes it a bit harder to give you good advise.

But there are several ways to serve your application

  • Wamp (Windows only)
  • Xampp
  • Laravel Sail
  • Larvel Homestead
  • Laravel Valet (Mac only)
  • Valet+
  • Docker
  • Local install of a stack
  • Set up your own server (virtual or physical)
aralvi143's avatar

@Tray2 here is my json file { "application": { "single_instance_guid": "", "dpi_aware": true }, "debugging": { "show_console": false, "subprocess_show_console": false, "log_level": "DEBUG4", "log_file": "debug.log" }, "main_window": { "title": "Symbargo Sports", "icon": "", "default_size": [ 1024, 768 ], "minimum_size": [ 800, 600 ], "maximum_size": [ 0, 0 ], "disable_maximize_button": false, "center_on_screen": true, "start_maximized": true, "start_fullscreen": false, "always_on_top": false, "minimize_to_tray": false, "minimize_to_tray_message": "Minimized to tray" }, "popup_window": { "icon": "", "fixed_title": "Symbargo Sports", "center_relative_to_parent": true, "default_size": [ 1024, 768 ] }, "web_server": { "listen_on": [ "127.0.0.1", 8000 ], "www_directory": "www/public/index.php", "index_files": [ "localhost:8000" ], "cgi_interpreter": "php/php-cgi.exe", "cgi_extensions": [ "php" ], "cgi_temp_dir": "", "404_handler": "/index.php", "hide_files": [] }, "chrome": { "log_file": "debug.log", "log_severity": "default", "cache_path": "webcache", "external_drag": true, "external_navigation": true, "reload_page_F5": true, "devtools_F12": true, "remote_debugging_port": 0, "command_line_switches": {}, "enable_downloads": true, "context_menu": { "enable_menu": false, "navigation": false, "print": false, "view_source": false, "open_in_external_browser": false, "devtools": false } } }

aralvi143's avatar

@Tray2 thank you so much i got my solution thanks for your help and guidance

Please or to participate in this conversation.