blog-contest-may-mayhem icon indicating copy to clipboard operation
blog-contest-may-mayhem copied to clipboard

Make Laravel Fluent Again with SmartFields 🔥

Open deiucanta opened this issue 6 years ago • 10 comments

https://medium.com/@deiucanta/make-laravel-fluent-again-with-smartfields-7d543e725365

deiucanta avatar May 28 '18 15:05 deiucanta

Nice post. But lobby for votes is against the rules, buddy. See here.

castroalves avatar May 28 '18 16:05 castroalves

@castroalves I thought it's about lobbying on social media. Am I wrong?

To be fair to those with smaller audiences, you may not lobby for votes via Twitter, etc.

deiucanta avatar May 28 '18 16:05 deiucanta

@deiucanta I think you can't lobby anywhere. @taylorotwell is the best person to help with it.

castroalves avatar May 28 '18 16:05 castroalves

@castroalves I just removed the link to the contest from my blog post, just to be on the safe side :)

deiucanta avatar May 28 '18 17:05 deiucanta

@deiucanta totally agree 👍

castroalves avatar May 28 '18 19:05 castroalves

@deiucanta Interesting proposal. I share the pain and am curious what some seasoned core contributors think about it.

minthemiddle avatar May 29 '18 10:05 minthemiddle

@minthemiddle Thanks for the feedback! This is something that goes beyond the blog contest and I'm curious as well what they think about it.

@taylorotwell @themsaid @barryvdh @adamwathan @GrahamCampbell

deiucanta avatar May 29 '18 10:05 deiucanta

I think the same problem will apply to #57, even though they don't have a direct link to the issue the article is about the contest so… it attracts people here. Tricky to set the limit though! ^^

mnapoli avatar May 29 '18 12:05 mnapoli

I like the idea. We can then generate a migration directly from the model class.

The issue might be with versioning. Like if you, on a 2nd migration, need to change the fields... how would the migration know what to change given the first model fields structure that were defined earlier.

laraning avatar May 29 '18 13:05 laraning

@laraning django framework makes the same idea , it generates the migrations from the model class , and if any changes happened on the model class , then we must execute this command in order to create a new migration with the changes

so i think if there's some sort of artisan command that reads the fields from model , and compare them to current database table columns , then generate migrations with only the changes , it would solve the problem , but not sure if there's a better solution .

amaelftah avatar May 29 '18 14:05 amaelftah