homestead

Windows下Laravel-Homestead环境搭建

北城以北 提交于 2019-12-02 14:54:15
本文作者:陈进坚 个人博客:https://jian1098.github.io CSDN博客:https://blog.csdn.net/c_jian 简书:https://www.jianshu.com/u/8ba9ac5706b6 联系方式:jian1098@qq.com 下载安装包 本文所有的程序已经上传到百度云盘,如有失效请联系作者进行更新下载链接 链接:https://pan.baidu.com/s/1DYyD-jpJOmiE-0RQBmDeiw 提取码:wr7j 安装 VirtualBox VirtualBox 是 Oracle 公司的开源虚拟机软件,安装包下载完成之后,双击安装包进行安装,之后按照提示操作一步一步进行安装即可。 安装 Vagrant Vagran 是用来管理虚拟机的工具,支持当前主流的虚拟机系统如 VirtualBox 、 VMware 、 AWS 等。 Vagrant 的主要作用是提供一个可配置、可移植和复用的软件环境。安装包下载完成之后,双击安装包进行安装,之后按照提示操作一步一步进行安装即可。 安装 Git Git 是一款非常流行的代码版本控制工具。安装包下载完成之后,双击安装包进行安装,之后按照提示操作一步一步进行安装即可。 安装 Homestead 说明 Homestead 脚本使用 Ruby 和 Shell 脚本编写而成。原理是对

Box 'laravel/homestead' could not be found

て烟熏妆下的殇ゞ 提交于 2019-12-02 14:44:56
I have downloaded the laravel/homestead box manually from here . I successfully add the box: vagrant box add file:///path/to/the/laravel/homestead.box --name 'laravel/homestead' but when I run vagrant up it says: Box 'laravel/homestead' could not be found even though vagrant box list shows the box. The download page says that run vagrant init laravel/homestead that generates a vagrantfile but the laravel/homestead repository itself provides a vagrantfile . I can vagrant up with the vagrantfile that is generated with vagrant init laravel/homestead but it lacks the essential configs inside the

搭建Ubuntu PHP开发环境(使用Vagrant+Homstead+VirtualBox)

北城余情 提交于 2019-12-02 06:15:11
安装 virtualbox 和 vagrant 这里下载并安装 VirtualBox , Vagrant . 下载并配置 Homestead Homestead 包括以下两个东西 一个 vagrant box 虚拟机, 里面软件什么都下载好了; Github 代码库, 里面装载着 vagrant 的配置脚本, 用来自动化配置网络, 端口映射, 等一些开发时候用到的配置; 打开终端(git-bash)克隆 homestead 项目到本地 git clone https://github.com/laravel/homestead.git Homestead 下载完成之后,进入Homestead目录,双击init.bat安装(或者直接在终端执行 bash init.sh 安装)homestead。 安装成功会生成目录.homestead,目录下面的Homestead.yaml 为 homestead 配置文件 C:\Users\Administrator\.homestead --- ip: "192.168.10.10" memory: 2048 cpus: 1 provider: virtualbox authorize: ~/.ssh/id_rsa.pub keys: - ~/.ssh/id_rsa folders: - map: G://homestead to: /home

Xdebug of Laravel Dusk in Netbeans on Homestead

白昼怎懂夜的黑 提交于 2019-12-02 05:49:46
问题 In Laravel Homestead, I've been able to use Xdebug for unit tests, feature tests, poking around in the browser, etc. But it hangs when I try to use Xdebug for Dusk (tests in tests/Browser folder). I thought these questions might help, but I still haven't gotten it working: debugging laravel artisan from PHPStorm with homestead Xdebug laravel artisan commands I've tried various approaches, including: export XDEBUG_CONFIG="idekey=netbeans-xdebug remote_connect_back=0 remote_host=10.0.2.2" php

Xdebug of Laravel Dusk in Netbeans on Homestead

倖福魔咒の 提交于 2019-12-02 01:49:18
In Laravel Homestead, I've been able to use Xdebug for unit tests, feature tests, poking around in the browser, etc. But it hangs when I try to use Xdebug for Dusk (tests in tests/Browser folder). I thought these questions might help, but I still haven't gotten it working: debugging laravel artisan from PHPStorm with homestead Xdebug laravel artisan commands I've tried various approaches, including: export XDEBUG_CONFIG="idekey=netbeans-xdebug remote_connect_back=0 remote_host=10.0.2.2" php artisan dusk and export XDEBUG_CONFIG="idekey=netbeans-xdebug remote_host=10.0.2.2" php -dxdebug.remote

How to access Laravel Homestead on other devices?

元气小坏坏 提交于 2019-12-01 22:29:27
My machine and Android devices are on the same network. Machine IP: 192.168.0.11 The IP where Homestead is running: 192.168.10.10 If I enter 192.168.0.11:8000 on my Android device I can use only one site. How can I enter all sites stored in Homestead? This is my Homestead.yaml file: --- ip: "192.168.10.10" memory: 2048 cpus: 1 provider: virtualbox authorize: ~/.ssh/id_rsa.pub keys: - ~/.ssh/id_rsa folders: - map: ~/Homestead-Projects to: /home/vagrant/Homestead-Projects sites: - map: site1.com to: /home/vagrant/Homestead-Projects/Site1/public - map: site2.app to: /home/vagrant/Homestead

Laravel 5.1 View not found

懵懂的女人 提交于 2019-12-01 18:07:51
this seems to be an issue that pops up every now and then within Laravel. I was writing a CRUD controller with a view to go with it, however upon testing I got the InvalidArgumentException in FileViewFinder.php line 137: View [bookingcrud.index] not found error. Here is my code: routes.php: Route::resource('bookingcrud', 'BookingsCrudController'); BookingsCrudController.php use uasc\Http\Requests; use uasc\Http\Requests\CrudCreateRequest; use uasc\Http\Requests\CrudUpdateRequest; use uasc\Http\Controllers\Controller; use Auth; use DB; use Illuminate\Pagination\Paginator; use Illuminate\Http

Localhost, Php artisan serve and homestead Pro/Cons

倖福魔咒の 提交于 2019-12-01 14:43:34
I am new to laravel and I am confused which environment I will used to create an app w/ db integration (MYSQL). Wamp (Localhost) PHP artisan Homestead What are the pro/cons of each environment? thanks Although this question is opinion based, my answer will be based on my experience. WAMP (Localhost) Wamp is short for Window Apache Mysql PHP Pros: - Wamp can easily be setup on windows by installing Wamp server, EasyPHP e.t.c Can easily be configured Comes with PHPMyAdmin for quick Mysql database administration Cons: Setting up Laravel in Wamp is a big pain as it involves advance configuration

Dnsmasq stopped working for no reason

坚强是说给别人听的谎言 提交于 2019-12-01 09:56:32
I started using Dnsmasq on OSX Yosemite to resolve all *.dev domains to 192.168.10.10 IP address, which is Laravel Homestead's default. It worked for me, but after sleeping and waking my Macbook, it stopped working. I have followed steps of this tutorial , at first and it worked. It seems like all needed files are still there, but now when I go to anything.dev , it loads forever and then timeouts. I do have a dev file at /etc/resolver with following content: nameserver 192.168.10.10 Please help. 来源: https://stackoverflow.com/questions/32091959/dnsmasq-stopped-working-for-no-reason

Dnsmasq stopped working for no reason

天涯浪子 提交于 2019-12-01 09:54:44
问题 I started using Dnsmasq on OSX Yosemite to resolve all *.dev domains to 192.168.10.10 IP address, which is Laravel Homestead's default. It worked for me, but after sleeping and waking my Macbook, it stopped working. I have followed steps of this tutorial, at first and it worked. It seems like all needed files are still there, but now when I go to anything.dev , it loads forever and then timeouts. I do have a dev file at /etc/resolver with following content: nameserver 192.168.10.10 Please