Coder Social home page Coder Social logo

Comments (8)

bpocallaghan avatar bpocallaghan commented on May 22, 2024

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.

maddeezy avatar maddeezy commented on May 22, 2024

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.

bpocallaghan avatar bpocallaghan commented on May 22, 2024

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.

bpocallaghan avatar bpocallaghan commented on May 22, 2024

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.

maddeezy avatar maddeezy commented on May 22, 2024

That was fast!! Where do we send donations 😀

from generators.

bpocallaghan avatar bpocallaghan commented on May 22, 2024

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.

maddeezy avatar maddeezy commented on May 22, 2024

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.

maddeezy avatar maddeezy commented on May 22, 2024

Works perfectly...even using plural forms besides "s" like celebrity becomes celebrities_id in the pivot table.

Excellent

from generators.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.