phpdesktop laravel 空白白页

我需要让一个网站离线可用,我的想法是创建一个桌面应用程序,在连接到服务器时同步数据库,然后我遇到了 phpdesktop,只是尝试将它用于我全新的 Laravel 项目,但是由于某种原因,当我运行 exe 时,唯一显示的是一个空白的白页。问题是什么?该项目是全新的

https://img1.mukewang.com/650d618f0001fa2f06530532.jpg

根据网上教程编辑settings.json web_server:


{

    "web_server": {

        "listen_on": ["127.0.0.1", 0],

        "www_directory": "www/public",

        "index_files": ["index.php"],

        "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": true,

            "navigation": true,

            "print": true,

            "view_source": true,

            "open_in_external_browser": true,

            "devtools": true

        }

    }

}

任何帮助将不胜感激,提前致谢。


qq_笑_17
浏览 58回答 1
1回答

开满天机

只需将 php 从 7.1 更新到 7.2.19 即可。我发现这个 repo https://github.com/laravelarticle/laravel-desktop并注意到这适用于更高的 php。
打开App,查看更多内容
随时随地看视频慕课网APP