How to add Reliese/Laravel in the latest version of the Lumen/Laravel app?

Asked

Viewed 104 times

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 function helper that has in the Laravel, in the Lumen needs to do!

  • ok. Good to know. I’ll see another solution

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.