I had the same problem yesterday. It is a breaking change in Laravel 5.0.16
See this: https://laracasts.com/discuss/channels/general-discussion/target-not-instantiable-only-on-my-server
Regards Niels.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi all,
Im using the boot method of "app/Providers/AppServiceProvider.php" to set some config variables that I need to use on the site.
For some reason this works fine on my local environment, but in my production environment the method is not firing (I use Digital Ocean and Forge).
Any ideas of what is the problem?
This is the code:
public function boot(Request $request, Config $config)
{
$domain = $request->root();
dd($domain);
}
I had the same problem yesterday. It is a breaking change in Laravel 5.0.16
See this: https://laracasts.com/discuss/channels/general-discussion/target-not-instantiable-only-on-my-server
Regards Niels.
Please or to participate in this conversation.