I guess YourServiceProvider::__construct
accepts a non-typed $app
instance. This means that Laravel cannot automatically resolve it. Try typing it; public function __construct(Application $app)
with the proper use-statement.
More: https://laravel.com/docs/5.3/container#automatic-injection