homestead

Laravel 5 Amazon AWS S3 Error: Client error: 403 RequestTimeTooSkewed

被刻印的时光 ゝ 提交于 2020-01-02 04:11:50
问题 I'm trying to upload files to an S3 bucket via a laravel app I get the following error: S3Exception in WrappedHttpHandler.php line 152: Error executing "PutObject" on "https://s3-ap-southeast-1.amazonaws.com/ AWS HTTP error: Client error: 403 RequestTimeTooSkewed (client): The difference between the request time and the current time is too large I've done some research and many say that my my machine's time is not synced. I'm afraid of messing with homestead because im afraid of breaking

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

痞子三分冷 提交于 2020-01-01 19:47:07
问题 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

Laravel 5.8: A facade root has not been set after homestead restart

不羁的心 提交于 2020-01-01 19:08:06
问题 so I'm trying to get into Laravel and this is my first time using Vagrant, so here's my problem: I've worked through the Laravel Homestead introduction and set up my development box, everything appears to be working and I did see the Laravel default app.When wrapping up the day I've stopped the local vagrant using vagrant halt and tried starting it again using vagrant up as before and then I'm receiving the "( ! ) Fatal error: Uncaught RuntimeException: A facade root has not been set. in

After installing Homestead I get “No input file specified” in the browser. How can I access my laravel project

痴心易碎 提交于 2020-01-01 04:36:04
问题 I think I finally got homestead installed on my laptop! Now, I am trying to view my laravel project in the browser. When I open "dev.app" in the browser I get a message that say "No input file specified." which I think means that my homestead is working but the laravel project is not there/setup. I have created a folder called Projects on my local laptop (i.e. ~/Projects). Then from inside of it i executed this command laravel new dev But I still get the same error message in the browser i.e.

Can't install Vagrant box Laravel Homestead

谁说我不能喝 提交于 2019-12-29 18:33:44
问题 I'm trying to install Laravel Homestead on Mac OS X following the official documentation instructions on here. I installed VirtualBox and Vagrant. Now I'm trying to add the Homestead box with the command vagrant box add laravel/homestead . After a while the download stops and I get an error. It doesn't let me restore the download so I have to delete the partial download file and start from zero. I've tried it many times. I think my Internet connection has something to do since it's kinda slow

“vendor” folder missing after running “Composer Install”

我只是一个虾纸丫 提交于 2019-12-25 12:07:29
问题 I am currently trying to run on Vagrant/Homestead a Laravel Application that I pulled from Github. I connected it to the database, and run Composer Install, Composer Update inside the folder. When I try to access to it on the Browser I get the following error: Warning: require(/home/vagrant/.../public/vendor/autoload.php): failed to open stream: No such file or directory in /home/vagrant/..../public/autoload.php on line 2 I navigated to the vendor folder and noticed that it was not created.

“vendor” folder missing after running “Composer Install”

只谈情不闲聊 提交于 2019-12-25 12:06:07
问题 I am currently trying to run on Vagrant/Homestead a Laravel Application that I pulled from Github. I connected it to the database, and run Composer Install, Composer Update inside the folder. When I try to access to it on the Browser I get the following error: Warning: require(/home/vagrant/.../public/vendor/autoload.php): failed to open stream: No such file or directory in /home/vagrant/..../public/autoload.php on line 2 I navigated to the vendor folder and noticed that it was not created.

network is fine, but cannot create laravel project and show error in the command

北城以北 提交于 2019-12-25 05:33:31
问题 I used this command to create a new laravel project in the homestead: composer create-project laravel/laravel Laravel Then, the terminal show this error: Failed to download laravel/laravel from dist: The "https://api.github.com/repos/laravel/laravel/zipball/7bddbdc2a1f8d9c23205707e74455d74684e3031" file could not be downloaded: failed to open stream: Connection timed out Now trying to download from source I used curl command to get the content, failed again: curl https://api.github.com/repos

Session issues in Homestead 4.2

丶灬走出姿态 提交于 2019-12-25 01:43:06
问题 I am using Laravel Homestead for my php development and working on a project that uses Sessions extensively. I've noticed that sessions do not persist at all. How can I fix this? Example: here's Index.php <?php session_start(); $_SESSION['variable'] = 'This Variable'; ?> <html> <body> <h1> <?php echo $_SESSION['variable']; ?> </h1> </body> </html> Here's sessionCheck.php <html> <body> <h1> <?php session_start(); print_r($_SESSION); ?> </h1> </body> </html> Echoes empty array. 回答1: Php

Laravel Homestead: Can't ping from inside of the VM any .local sites

六月ゝ 毕业季﹏ 提交于 2019-12-24 22:12:33
问题 No idea where's the issue. My other workmate has no issues pinging foo.local from the host Mac as well as from inside of the VM. My Homestead.yaml is simple: --- ip: "192.168.10.10" memory: 2048 cpus: 1 provider: virtualbox authorize: ~/.ssh/id_rsa.pub keys: - ~/.ssh/id_rsa folders: - map: ~/Code to: /home/vagrant/code sites: - map: vppaportal.local to: /home/vagrant/code/vppa-portal/public - map: iosportal.local to: /home/vagrant/code/ios-portal/public - map: ascent.local to: /home/vagrant