Comments (11)
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.
Up!
from generators.
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.
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.
UP! :-)
from generators.
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.
Up!
from generators.
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.
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.
Is there any update to this at all? Laravel Generators does work for existing models does it?
from generators.
@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
orid
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)
- Class 'Backpack\Generators\GeneratorsServiceProvider' not found HOT 3
- created_at is the first generated field and column HOT 1
- [improvement] refactor the way we validate that file is a model HOT 2
- `php artisan backpack:crud` output is now messy HOT 3
- Create a `php artisan backpack:button` command HOT 3
- Add optional flags to `php artisan backpack:crud` HOT 4
- Command to create a new page: HOT 12
- Echo file paths for PHP classes after `php artisan backpack:crud`
- Method Illuminate\Support\Stringable::lcfirst does not exist. HOT 6
- backpack:crud-controller throw SQL error HOT 4
- backpack:crud SomeEntity throws an error in mongodb
- `php artisan backpack:build` on our demo highlights a bunch of minor problems HOT 2
- [bug] generating nested controllers and models HOT 3
- "Backpack\Generators\Services\BackpackCommand contains 1 abstract method" after update HOT 3
- Issue about abstract class HOT 4
- PHP 8.2 deprecation warning in PageBackpackCommand HOT 2
- In L10 it fails adding CrudTrait HOT 2
- Add --force arg to backpack:crud command HOT 3
- [v6] Remove fluent and array syntax comments from generated CrudControllers HOT 1
- 3.3.16 Method Illuminate\Support\Stringable::value does not exist on `php artisan backpack:build` HOT 3
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.