Comments (1)
Yup, It is possible ! I think about it too.
We need to refactor the directory of loaded stubs file from each generator command into custom directory if exist and the fallback is the origin one.
For example :
At file :
src/LumenGenerator/Console/CastMakeCommand.php
There is protected getStub() function :
/**
* Get the stub file for the generator.
*
* @return string
*/
protected function getStub()
{
return __DIR__.'/stubs/cast.stub';
}
We should change something like :
/**
* Get the stub file for the generator.
*
* @return string
*/
protected function getStub()
{
return (config('flipbox.stub.dir') ? config('flipbox.stub.dir') : __DIR__) . '/stubs/cast.stub';
}
from lumen-generator.
Related Issues (20)
- can't install on PHP v8 HOT 1
- classpreloader/classpreloader 4.0.1 requires php ^7.0.8 -> your php version (8.0.1) does not satisfy that requirement HOT 1
- Requests generated incorrectly HOT 2
- Support for config:clear and route:cache HOT 2
- make:policy problem HOT 1
- make:request is not using proper class. HOT 1
- Add support for illuminate 9.* packages HOT 6
- Add Support for lumen 10 HOT 1
- Your requirements could not be resolved to an installable set of packages. HOT 1
- New Feature: make:exception command HOT 1
- Undefined variable: strictTypes HOT 2
- array_keys() expects parameter 1 to be array, null given when passport:install HOT 1
- route:list get_class() expects parameter 1 to be object, null given HOT 1
- Need to fix resource.stub HOT 1
- resource.stub should extend JsonResource?
- Cannot install on Lumen 8.0 HOT 1
- Including schema:dump command
- Installation request for flipbox/lumen-generator ^8.0 -> satisfiable by flipbox/lumen-generator[8.0.0]. HOT 1
- command make model wrong dir HOT 1
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-generator.