2
I just installed the Lumen and I’m gonna need to use the Reliese to create Models (and Migrations) from an existing database.
Following the documentation, after the installation I need to add Reliese 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 turned the remote php artisan code:models --table=users
And that’s the mistake 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 to the Provider service or how to make Reliese work on Lumen?
This package is not compatible with
Lumen/Laravel
, maybe you need to change packages, or open an Issue to check compatibility and if you already have compatible projects, this first error for example is a functionhelper
that has in the Laravel, in the Lumen needs to do!– novic
ok. Good to know. I’ll see another solution
– zwitterion