phpdesktop laravel 空白白页

phpdesktop laravel blank white page

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

settings.jsonweb_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
        }
    }
}

出来的日志:

- 13:47:23.109 INFO: --------------------------------------------------------
- 13:47:23.109 INFO: Started application
- 13:47:23.109 INFO: Logging to: C:\phpdesktop-chrome-57.0-rc-php-7.1.3\debug.log
- 13:47:23.109 INFO: Log level = DEBUG4
- 13:47:23.109 INFO: Starting Mongoose 3.9c web server
- 13:47:23.109 INFO: WWW directory: C:\phpdesktop-chrome-57.0-rc-php-7.1.3\www\public
- 13:47:23.109 INFO: Index files: index.php
- 13:47:23.109 INFO: CGI interpreter: C:\phpdesktop-chrome-57.0-rc-php-7.1.3\php\php-cgi.exe
- 13:47:23.109 INFO: CGI pattern: **.php$
- 13:47:23.109 INFO: Hide files patterns:
- 13:47:23.109 DEBUG: The temp directory returned by OS contains unicode characters: C:\Users\KAMACH~1\AppData\Local\Temp\
- 13:47:23.125 INFO: CGI environment variables set: TMP=C:\WINDOWS\Temp,TEMP=C:\WINDOWS\Temp,TMPDIR=C:\WINDOWS\Temp,SERVER_NAME=127.0.0.1,PHPDESKTOP_VERSION=57.0
- 13:47:23.125 INFO: Web server url: http://127.0.0.1:51950/
- 13:47:23.140 INFO: remote_debugging_port = 54835
- 13:47:23.140 DEBUG: Command line string for the browser process: "C:\phpdesktop-chrome-57.0-rc-php-7.1.3\phpdesktop-chrome.exe" --no-sandbox --lang=en-US --log-file="C:\phpdesktop-chrome-57.0-rc-php-7.1.3\debug.log" --remote-debugging-port=54835 --disable-gpu
- 13:47:24.250 DEBUG: App::OnContextInitialized()
- 13:47:24.250 DEBUG: Window max width/height = 1286/720
- 13:47:24.265 DEBUG: GetBrowserWindow(): not found, hwnd = 5178660
- 13:47:24.265 DEBUG: WindowProc(): event WM_GETMINMAXINFO: could not fetch BrowserWindow
- 13:47:24.265 DEBUG: BrowserWindow::CreateBrowserControl()
- 13:47:24.265 DEBUG: StoreBrowserWindow(): hwnd = 5178660
- 13:47:24.328 DEBUG: ClientHandler::OnAfterCreated()
- 13:47:24.328 DEBUG: SetCefBrowser() called in ClientHandler::OnAfterCreated()
- 13:47:24.343 DEBUG: OnLoadingStateChange: loading=1, url=
- 13:47:25.843 INFO: GET 200 /
- 13:47:25.843 DEBUG: OnLoadingStateChange: loading=0, url=http://127.0.0.1:51950/

任何帮助将不胜感激,在此先感谢。

只需将 php 从 7.1 更新到 7.2.19。 我找到这个 repo https://github.com/laravelarticle/laravel-desktop 并注意到它在更高的 php.

上工作