homestead

Laravel homestead not mapping my code folder

给你一囗甜甜゛ 提交于 2019-12-05 04:52:19
I am trying to get homestead to work after following the instructions here I have Virtualbox 5.0.6 and Vagrant 1.7.4 on windows 8. The machine boots up fine(ish) the only problem is that my mapped folder is not present on the vm, meaning when I vagrant ssh , the directory /home/vagrant/ is empty, there is no Code directory inside of it. This is a screenshot of the machine booting(it should keep going and saying mapping the folders and stuff): And this is the content of my Homestead.yaml file --- ip: "192.168.10.10" memory: 2048 cpus: 1 provider: virtualbox authorize: C:\Users\Khalid\.ssh\id

Vagrant: missing file id_rsa

半城伤御伤魂 提交于 2019-12-05 00:03:14
I'm using windows with homestead and I'm trying to enter vagrant up on the command line but I'm getting this error: C:/www/Homestead/scripts/homestead.rb:106:in read': No such file or directory @ rb_sysopen - C:/Users/Niall/.ssh/id_rsa (Errno::ENOENT) from C:/www/Homestead/scripts/homestead.rb:106:in block (2 levels) in configure' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/kernel_v2/config/vm_provisioner.rb:72:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/plugins/kernel_v2/config/vm_provisioner.rb:72:in add_config' from C:/HashiCorp/Vagrant

Is there a solution for npm install error in Laravel Homestead?

喜夏-厌秋 提交于 2019-12-04 18:35:59
Windows 10, Homestead VirtualBox 6.0.8, Vagrant 2.2.5, node v12.5.0, npm v6.10.1 All i'm trying to do is npm install command inside fresh installed Laravel app, but i keep getting errors. After googling for two days and trying everything i found as a possible solution for npm install error i decided to try one more time reinstalling everything in hope that would fix my issue with npm install but unfortunately that didn't help either. I tried deleting node_modules, cleaning npm cache, sudo npm install, sudo npm install --no-bin-links, updating node and npm but both were at latest version

“SQLSTATE[HY000] [2002] No such file or directory” error when migrating table in Laravel

社会主义新天地 提交于 2019-12-04 18:13:35
I am getting the following error when I try to migrate a table in Laravel 5 using the "php artisan migrate" command: 'SQLSTATE[HY000] [2002] No such file or directory' in . . . /vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:47 My .env file includes the default settings as follows: DB_HOST=localhost DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret My database.php file lists mysql as the default database connection, homestead is listed as the database in my homestead.yaml file, and homestead is one of the tables listed when I access mysql and use the

Laravel 5.1 - Homestead MySQL connection. `Connection Refused` & `No such file or directory`

本小妞迷上赌 提交于 2019-12-04 13:11:21
When my .env file is like this: DB_HOST=127.0.0.1 DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret Terminal php artisan migrate works successful but on localhost test, it throws : PDOException in Connector.php line 50: SQLSTATE[HY000] [2002] Connection refused But when my .env file is like this: DB_HOST=localhost DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret On localhost everything (registration) works well however php artisan migrate on terminal throws: [PDOException] SQLSTATE[HY000] [2002] No such file or directory My database.php file: 'mysql' => [ 'driver' =>

How to automatically enable php extensions in Homestead on vagrant up

白昼怎懂夜的黑 提交于 2019-12-04 09:15:43
问题 Im using Laravel 5.3 in Homestead with Vagrant 1.8.7 running on VirtualBox. I have need to enable some php extensions. I know that I could ssh into the box and edit the php.ini to enable the extension but this seems like a very anti-vagrant way to do this. I want to tell Vagrant to provision the box with specific php extensions enabled so that I can simply call vagrant up --provision and the box will be ready to go (kinda the point of vagrant right?) So, How can we automatically enable php

How to access Laravel Homestead on other devices?

痴心易碎 提交于 2019-12-04 04:17:15
问题 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

Laravel 5.1 View not found

邮差的信 提交于 2019-12-04 03:28:05
问题 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

laravel 5.1 not seeing changes to Job file without VM restart

只愿长相守 提交于 2019-12-04 02:33:28
I have created a new Job in a laravel 5.1 app, running in Homestead VM. I've set it to be queued and have code in the handle method. The handle() method previous expected a param to be passed, but is no longer required and I've removed the param form the handle method. However, when the queue runs the job I get an error saying: [2015-06-17 14:08:46] local.ERROR: exception 'ErrorException' with message 'Missing argument 1 for Simile\Jobs\SpecialJob::handle()' in /home/vagrant/Code/BitBucket/simile-app/app/Jobs/SpecialJob.php:31 line 31 of that file is: public function handle() Its not longer

Localhost, Php artisan serve and homestead Pro/Cons

浪子不回头ぞ 提交于 2019-12-04 02:25:23
问题 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 回答1: 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