I run composer update just now and
Writing lock file
Generating autoload files
> Illuminate\Foundation\ComposerScripts::postUpdate
> php artisan optimize
[Symfony\Component\Debug\Exception\FatalThrowableError]
Type error: Argument 2 passed to Illuminate\Routing\UrlGenerator::__constru
ct() must be an instance of Illuminate\Http\Request, null given, called in
[...]/vendor/laravel/framework/src/Illuminate/R
outing/RoutingServiceProvider.php on line 64
Any idea?
I just updated and everything is working as expected, so it seems to be on your application.
Not sure if it's the issue, but i recall people having the same issue when using functions like url(), asset(), etc.. in config files, check if you have any of those.
@brunogaspar yes, url() in config. Thank you.
I had the same issue with Laravel 5.6 and it was because I was using url( ) in the config.php.
I switched to using env('APP_URL').... and that fixed the issue for me.
Most helpful comment
@brunogaspar yes, url() in config. Thank you.