Code Monkey home page Code Monkey logo

Comments (11)

stale avatar stale commented on June 9, 2024

Hi there!

Is this still an issue? No activity in 60 days. I'm going to mark it as stale for now, and close it in 14 days if no further activity occurs. I know you guys are all busy, but if this is important to you please reply or something, so I know not to close it.

Thank you!

--
Justin Case
The Backpack Robot

from generators.

tabacitu avatar tabacitu commented on June 9, 2024

Up!

from generators.

stale avatar stale commented on June 9, 2024

Hi there!

Is this still an issue? No activity in 60 days. I'm going to mark it as stale for now, and close it in 14 days if no further activity occurs. I know you guys are all busy, but if this is important to you please reply or something, so I know not to close it.

Thank you!

--
Justin Case
The Backpack Robot

from generators.

stale avatar stale commented on June 9, 2024

Hi there!

Is this still an issue? No activity in 60 days. I'm going to mark it as stale for now, and close it in 14 days if no further activity occurs. I know you guys are all busy, but if this is important to you please reply or something, so I know not to close it.

Thank you!

--
Justin Case
The Backpack Robot

from generators.

tabacitu avatar tabacitu commented on June 9, 2024

UP! :-)

from generators.

stale avatar stale commented on June 9, 2024

Hi there!

Is this still an issue? No activity in 60 days. I'm going to mark it as stale for now, and close it in 14 days if no further activity occurs. I know you guys are all busy, but if this is important to you please reply or something, so I know not to close it.

Thank you!

--
Justin Case
The Backpack Robot

from generators.

tabacitu avatar tabacitu commented on June 9, 2024

Up!

from generators.

stale avatar stale commented on June 9, 2024

Hi there!

Is this still an issue? No activity in 60 days. I'm going to mark it as stale for now, and close it in 14 days if no further activity occurs. I know you guys are all busy, but if this is important to you please reply or something, so I know not to close it.

Thank you!

--
Justin Case
The Backpack Robot

from generators.

tabacitu avatar tabacitu commented on June 9, 2024

Hopefully we won’t have to do this, since https://github.com/webfactor/laravel-generators already does it. Let’s move the conversation there.

from generators.

jamespavett avatar jamespavett commented on June 9, 2024

Is there any update to this at all? Laravel Generators does work for existing models does it?

from generators.

tabacitu avatar tabacitu commented on June 9, 2024

@jamespavett - nope. It does NOT work for existing models, it only generates NEW models.

This issue was closed prematurely in 2018 - we ended up not using webfactor/laravel-generators officially after all. Nor did we code a solution ourselves. We decided generating models with relationships is pretty much out-of-scope for this package. I believe it should only concern itself with generating Backpack stuff, since there are so many packages out there generating models already. No need to reinvent the wheel.

Personally nowadays I use Blueprint which generates models complete with relationships. Then I run php artisan backpack:crud and it puts our CrudTrait on top, which is all Backpack actually needs. It works very well for my usual needs.

We're working on a way to make this the "default" process for all backpackers. But while we're at it, we decided to take it to the next level, and:

  • create a GUI for it
  • abstract away the migration syntax, relationship syntax, everything, so you don't have to remember any of that

We're creating a UI where you just point & click what DB columns you want, pick a type and fillable/nullable/etc, and it will automatically choose the right db column type, run the migration, create the model, write the relationships, put the CrudTrait on it and even generate a pretty decent CrudController and CrudRequest (with validation) for it. It's not an easy task to accomplish, but it'll save us HOURS and a lot of headspace. Think about it:

  • you'll never need to open the Laravel docs for migrations (and see if you should use unsignedBigInteger or id or whatever)
  • you'll never need to open the Laravel docs for relationships (and see which parameter was what)
  • in ~2 minutes you'll go from "I need a new table" to "I have a db table, migration, model and admin panel for it"

Sounds pretty freaking awesome doesn't it? 😀 But yeah it'll take time - this is one of the features of an add-on we call DevTools which will be launched in Jan-Feb 2020 most likely. Subscribe to our news digest and it'll let you know when it's out. Until then, I recommend using Blueprint to generate Models in Laravel.

Hope it helps.
Cheers!

from generators.

Related Issues (20)

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.