Laravel - 找不到代客 404
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/52039330/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Laravel - valet 404 not found
提问by Abhishek
I have a laravel project which was working fine in http
with php artisan serve
. But I was working on a project where I needed to implement Facebook Login API which requires call from https
, for doing this I installed valet globally executed following command:
我这是在工作的罚款laravel项目http
用php artisan serve
。但我正在做一个项目,我需要实现 Facebook 登录 API,该 API 需要从 调用https
,为此我安装了全局执行以下命令的代客泊车:
valet link backend-laravel
valet secure backend-laravel
Here is the screenshot of valet links
Now when i enter https://backend-laravel.test
it shows 404 error
.
现在当我输入https://backend-laravel.test
它显示404 error
。
How can make it running? Is there something I missed?
怎样才能让它运行?有什么我错过了吗?
回答by Jinal Somaiya
Run following commands from your project directory:
从您的项目目录运行以下命令:
valet park
valet link backend-laravel
回答by Madhuri Patel
You'll need to reinstall valet, just run valet install and valet restart. For this following steps:
您需要重新安装 valet,只需运行 valet install 和 valet restart。为此,请执行以下步骤:
cd parent
valet link my-project
cd parent
valet unlink my-project
That'll clean up previous, incorrect link and then run below code:
这将清除以前的错误链接,然后运行以下代码:
cd parent/my-project
valet link my-project
回答by Christakitos
You should run:
你应该运行:
valet park
from your project folder to add it to Valet's paths.
从您的项目文件夹中将其添加到 Valet 的路径中。
回答by Prakash Poudel
You should run:
你应该运行:
valet park
on your main folder (where all the laravel projects are stored) while the folders inside the main folder are the project folders and folder_name_inside_the_main_folder.test opens the project on your browser.
在您的主文件夹(存储所有 Laravel 项目的位置)上,而主文件夹内的文件夹是项目文件夹,而 folder_name_inside_the_main_folder.test 在浏览器上打开项目。
OR
或者
You should run:
你应该运行:
valet link
on your project folder and open foldername.test on the browser.
在您的项目文件夹上并在浏览器上打开 foldername.test。
Hope it helps someone!!!
希望对某人有帮助!!!