Comments (8)
Hi Erik
Thanks for logging the bug.
Please find the fix with version 4.0.4.
I've also added a few more commands:
generate:notification NotificationName
generate:event EventName
generate:listener ListenerName --event=EventName
generate:event-listener
(generate the missing events and listeners)
from generators.
Sort of fixed (unless my naming convention is wrong)
Example:
generate:migration:pivot foo_bar upload
It creates the name as:
createFoo_BarUploadPivotTable
I believe it should be
createFooBarUploadPivotTable
I fixed it by doing a str_replace("_", "", ...)
Is it bad practice to use foo_bar as a naming convention? It is super readable, but not sure it is standard.
from generators.
Hi Erik
aaah, To be honest, I am not sure - Most of the Migration Pivot code is from Jeffreys' L4 generators package.
I personally use _ in my table names -- user_role
Will add it quick!
from generators.
Hi Erik
Added new release - 4.0.5
generate:migration:pivot foo bar -- CreateFooBarPivotTable
generate:migration:pivot foo_bar taz -- CreateFooBarTazPivotTable
Both should work now
from generators.
That was fast!! Where do we send donations 😀
from generators.
hahaha.
You are the second person contacting me regarding the package - I need to keep the 2 users happy :)
Please let me know if you have any other suggestions, I personally think the 'custom stubs' are very nice to add your boilerplate. Can easily add views / controllers for the admin and website part.
Let me know if its not resolved :)
from generators.
I ended up using your package and then came up with a blade templating system that pulls from the migrations (Schema) and shows all the CRUD dynamically so I never have to return to the views again for basic CRUD stuff...I pass a few parameters like $do_not_display (then they don't show up on the view for index or show)
So yeah, the custom stubs are perfect!!
This package helped me to really standardize everything and reduced the time drastically.
If you're interested in doing any team mentoring (for compensation of course) let me know.
So start LaravelMentoring.com and I'll be your first customer...
from generators.
Works perfectly...even using plural forms besides "s" like celebrity becomes celebrities_id in the pivot table.
Excellent
from generators.
Related Issues (18)
- Config and publishing stubs HOT 7
- Migration - Add placeholders
- Composer Update doesn't recognize existing stubs HOT 3
- generate:migration:pivot has inverted classes HOT 3
- Trait 'Illuminate\Console\DetectsApplicationNamespace' not found in Laravel 5.3 HOT 15
- Enhancement for repositories/contracts HOT 5
- AdminController which all controller extend is not exist already ! HOT 3
- How are shortcuts are supposed to work? HOT 5
- Migration is auto populated with personal preferences. HOT 5
- Some feature request and speaking of generate::request HOT 2
- Abstract the placeholders used in BuildClass method
- PHP 8 Compat HOT 2
- Finish the view command with the --stub option
- Add a FileCommand
- Consistency in {{resource_name}} in Controllers HOT 2
- Inject methods into models during generate:migration:pivot foo bar HOT 15
- Validator idea HOT 2
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 generators.