mpociot / teamwork

User to Team associations with invitation system for the Laravel 5 Framework
MIT License
1.07k stars 170 forks source link

Laravel 5.4 Compatibility #72

Closed sschlein closed 7 years ago

sschlein commented 7 years ago

The registerCommands function of the TeamworkServiceProvider throws an error because it uses the removed share method. I wasn't able to fix it, otherwise, I'd have provided a Pull Request.

It works if I remove the function body locally but this also removes the function.

    /**
     * Register scaffolding command
     */
    protected function registerCommands()
    {
        //$this->app['make.teamwork'] = $this->app->share(function () {
        //    return new MakeTeamwork();
        //});

        //$this->commands([
        //    'make.teamwork'
        //]);
    }
sschlein commented 7 years ago

Finally, I've been able to fix it. Took at look how Laravel Dusk does it 😃

https://github.com/mpociot/teamwork/pull/73

mpociot commented 7 years ago

I just released 5.0.0 which gives Laravel 5.4 support :)