etrepat / baum

Baum is an implementation of the Nested Set pattern for Laravel's Eloquent ORM.
http://etrepat.com/baum
MIT License
2.24k stars 459 forks source link

Unresolvable dependency resolving [Parameter #1 [ <required> $customStubPath #333

Open KalimeroMK opened 4 years ago

KalimeroMK commented 4 years ago

on update

In Container.php line 993:

  Unresolvable dependency resolving [Parameter #1 [ <required> $customStubPath ]] in class Illuminate\Database\Migrations\MigrationCreator
chrisgonzales commented 4 years ago

Just now updating an old php 5 project and came across this error. Found that this may be related to this topic https://github.com/laravel/framework/issues/31978

It basically says add a default of null to the customStubPath. I gave it a shot added it to Baum\Console\MigrationCreator.php and it killed the error at least. So hopefully this may help with a proper solution.


    /**
     * Create a new migration creator instance.
     *
     * @param  \Illuminate\Filesystem\Filesystem  $files
     * @param  string  $customStubPath
     * @return void
     */
    public function __construct(Filesystem $files, $customStubPath = null)
    {
        parent::__construct($files, $customStubPath);
    }```
tejas-webmavens commented 3 years ago

@chrisgonzales Thanks, it worked for me as well.