Perfect丶戈

1402 经验值

赞,不过我这里效果不会车他不会把值传过来

可以评论没有点赞功能。你的评论很有用~

vagrant up 后可以启动虚拟机并且运行,但是使用 homestead up 要重新下载 box,且 homestead halt 提示 default: VM not created. Moving on...

例如在 Code 文件里面有 N 个Laravel 文件夹如何配置 homestead.yaml,
是每个Laravel 文件夹里面新建个Homestead 文件吗

解决了,homesteand.yaml 的文件配置问题

我找到问题了,不是nginx 配置问题,是 public/index.php 里面的 require __DIR__.'/../bootstrap/autoload.php';
__DIR__.'/../bootstrap/app.php';
好像引入找不到这文件- -

server
    {
        listen 80 default_server;
        #listen [::]:80 default_server ipv6only=on;
        server_name _;
        index index.html index.htm index.php;
        #root  /home/wwwroot/default;
        root /home/wwwroot/default/laravel-demo/public;

        #error_page   404   /404.html;

        # Deny access to PHP files in specific directory
        #location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
        include enable-php.conf;

        server_name localhost;

        location / {
            try_files $uri $uri/ /index.php?$query_string;
        }

        location ~ \.php$ {
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;
        }

        location /nginx_status
        {
            stub_status on;
            access_log   off;
        }
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }

        location ~ .*\.(js|css)?$
        {
            expires      12h;
        }

        location ~ /.well-known {
            allow all;
        }

        location ~ /\.
        {
            deny all;
        }

        access_log  /home/wwwlogs/access.log;
    }

问题是我 root 要是 写 /home/wwwroot/default/laravel-demo 的话我域名后写 public 就可以访问...