Framework: New laravel install with per project homestead setup problem

Created on 6 May 2017  路  5Comments  路  Source: laravel/framework

  • Laravel Version: 5.4.21
  • PHP Version: 7.1
  • Database Driver & Version: mysql 5.7.4
  • OS: Windows 10 x64 Home Edition
  • Bash platform: Github based bash for Windows.

Description:

Its actually more laravel/setter problem I guess, but I report here, because if I go to https://github.com/laravel/settler I have no issues section there.
Screenshot
So I'm getting this:

$ vendor\\bin\\homestead make

Strict Standards: Static function Laravel\Homestead\Settings\HomesteadSettings::fromFile() should not be abstract in D:\www\youtube_task\vendor\laravel\homestead\src\Settings\HomesteadSettings.php on line 30
Homestead Installed!

problem when trying to run
vendor\bin\homestead make

Steps To Reproduce:

  1. laravel new project
  2. composer require laravel/homestead --dev
  3. vendor\bin\homestead make

Most helpful comment

I Was able to reproduce the problem and found out the solution.
The problem still persists on the newest Laravel/Homestead package.

Here you go:
On a Mac: Open Finder and navigate to /Users/user/.composer/vendor/laravel/homestead/src/MakeCommand.php
I used sublime text on this step, open the MakeCommand.php in sublime, click on find and replace, type in default and click replace all, this will replace all the defaultname variables with name only.
Now type homestead in the terminal, it should work like a charm.

All 5 comments

The Homestead repo accepts issue reports.
https://github.com/laravel/homestead/issues

This repo is for bug tracking. Use the forums or slack channel for solving your issue

@juslintek just experienced this issue as well and felt sad this issue wasn't answered in this thread: the fix is to set homestead to the latest stable version instead of master:

composer require laravel/homestead ^5.3.2 --dev

@vincentmarle You are my savior - picking lower release version for homestead works for me
https://github.com/laravel/framework/issues/19088#issuecomment-304554295

I Was able to reproduce the problem and found out the solution.
The problem still persists on the newest Laravel/Homestead package.

Here you go:
On a Mac: Open Finder and navigate to /Users/user/.composer/vendor/laravel/homestead/src/MakeCommand.php
I used sublime text on this step, open the MakeCommand.php in sublime, click on find and replace, type in default and click replace all, this will replace all the defaultname variables with name only.
Now type homestead in the terminal, it should work like a charm.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

YannPl picture YannPl  路  3Comments

Anahkiasen picture Anahkiasen  路  3Comments

gabriellimo picture gabriellimo  路  3Comments

CupOfTea696 picture CupOfTea696  路  3Comments

kerbylav picture kerbylav  路  3Comments