How to add Reliese / Laravel to the provider in Lumen / Laravel, latest version?

2

I just installed Lumen and will need to use Reliese to create the Models (and migrations) from a database that already exists.

Following the documentation, after installation I need to add Reliese to the provider in Config / app.php

The problem is that there is no Config / app.php in Lumen.

I tried adding in app / Providers / AppServiceProviders.php

public function register()
    {
        if ($this->app->environment() == 'local') {
            $this->app->register(\Reliese\Coders\CodersServiceProvider::class);
        }
    }

and I ran the command php artisan code:models --table=users

And this is the error it presents;

[Symfony\Component\Debug\Exception\FatalThrowableError]  
  Call to undefined function Reliese\Coders\config_path()

My Env is pointing to location APP_ENV=local .

Does anyone know how to add this class in the service provider or how to run Reliese on Lumen?

    
asked by anonymous 20.08.2017 / 23:24

0 answers