Comments (2)
At a minimum, the App\Providers\AppServiceProvider
needs to be aware that the package may not be installed.
...
use Wn\Generators\CommandsServiceProvider;
...
class AppServiceProvider extends ServiceProvider
{
public function register()
{
// Install the generators.
if ($this->app->environment() === 'local' && class_exists(CommandsServiceProvider::class)) {
$this->app->register(CommandsServiceProvider::class);
}
}
...
}
from lumen-generators.
Even simpler in bootstrap/app.php
:
if (class_exists(Wn\Generators\CommandsServiceProvider::class)) {
$app->register(Wn\Generators\CommandsServiceProvider::class);
}
from lumen-generators.
Related Issues (20)
- const MODEL doesn't respect namespace from --path option
- Migrations generated from resources file cause name collisions
- Pivot table migrations can come before their dependent tables HOT 1
- does lumen-generators support laravel 5.5?
- Resource creation damages artisan HOT 2
- Undefined variable app in web.php Lumen 5.5 HOT 9
- argument --no-routes doesn't work as it creates them anyway
- Cannot add foreign key constraint wn:resources
- Are Nested Routes Possible?
- Adding additional fields in pivot table with resources?
- wn:resources does not exist on lumen 5.6 HOT 1
- Error on MigrationCommand.php: count() HOT 3
- Trying to generate resources with wn:resources error
- Failing tests on fresh install HOT 1
- enum
- artisan wn:controller issue when underscore in the name of table HOT 1
- Model can't be found in RESTactions trait HOT 2
- How i do one object whithout fields?
- cant install on lumen 6.x HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lumen-generators.