upwebdesign / laravel-infusionsoft

Laravel 5 Port of the Infusionsoft SDK
MIT License
2 stars 10 forks source link

Error artisan comands #13

Closed adriallongarriu closed 3 years ago

adriallongarriu commented 3 years ago

Using php artisan comands for example php artisan route:list cause an error:

In UrlGenerator.php line 119:

Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct() must be an instance of Illuminate\Http\Request, null given, called in /home/vagrant/code/nova-sanchezcasal/vendor/laravel/framework/src/Illuminate/Routing/Routing ServiceProvider.php on line 62

Error is caused by using url() helper function inside configuration file: 'redirect_uri' => env('INFUSIONSOFT_REDIRECT_URI', url('infusionsoft/auth/callback'))

upwebdesign commented 3 years ago

@adriallongarriu thanks for pointing this out. Do you happen to have time to make a PR?

adriallongarriu commented 3 years ago

I did a PR #14 removing the helper funcion.