Instead of `App('path')`, you should use `$this->app['path']`.