[英]How to use Laravel Homestead for development
I know this might sound really silly, but I'm kinda stuck and need help. 我知道这听起来真的很傻,但是我有点坚持不懈,需要帮助。 I'm trying to use Laravel 5.3 and use Homestead as my IDE.
我正在尝试使用Laravel 5.3并使用Homestead作为我的IDE。 I have previously worked on PHP using NetBeans and XAMPP, but the installation has always been a pain.
以前,我曾使用NetBeans和XAMPP进行过PHP的开发,但是安装一直很麻烦。 I have no formal training and have learnt and used basic PHP on my own for my webpages.
我没有经过正式的培训,并且已经自己学习并使用了基本的PHP。
I'm running a Windows 8-32Bit OS & here's what I've done so far: 我正在运行Windows 8-32Bit OS,到目前为止,这是我所做的:
vagrant box add laravel/homestead
(Homestead.yaml was not found in my Homestead folder after running bash init.sh
command. I downloaded it from Github and added there). vagrant box add laravel/homestead
(运行bash init.sh
命令后,在我的Homestead文件夹中找不到Homestead.yaml。我从Github下载并添加了该文件)。 vagrant up
in Homestead folder (the installation was complete). vagrant up
在宅基地文件夹(安装完成)。 Issues: 问题:
http://localhost:8000
in my browser, nothing happens. http://localhost:8000
,则不会发生任何事情。 I have to run php artisan serve
in the command prompt inside laravel directory and keep the prompt window open for the default Laravel 5 page to open. php artisan serve
,并保持提示窗口打开以打开默认的Laravel 5页面。 http://127.0.0.1:8000
in my browser, nothing happens at all. http://127.0.0.1:8000
,则什么都没有发生。 So how do I use Homestead then for my development everyday ? 那么,我每天如何使用Homestead进行开发?
you can try 你可以试试
localhost/project-name/public 本地主机/项目名称/公共
if you dont want to run php artisan serve 如果您不想运行php artisan serve
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.