How Would ChatGPT Generate Laravel Factories and Seeders?

preview_player
Показать описание
One of the practical uses of AI assistants could be to generate code for faking data. How would it do? Let's try it out.

- - - - -
Support the channel by checking out my products:

- - - - -
Other places to follow:
Рекомендации по теме
Комментарии
Автор

I have implemented openAI in my current project to return keywords from product description that are related to the product category without the stop words . It’s not perfect but it works. Also yesterday I asked it’s chat to write an email invitation to encourage our clients to fill in their profiles and it generated the most amazing email content 😊 what a wonderful tool 🎉

AliAwwad
Автор

Great stuff,
You should also try refactoring some classes or helper methods or convert SQL query to eloquent etc 😇

maazktk
Автор

When I saw the title of this video I thought you were going to use it to create fake input that Faker doesn't already do. That might be something it's very good at.

laubannenberg
Автор

I don't like ask it to generate something, cause it may break some PSR/team standards and I personally hate editing spacing n stuff. But what it does good is optimizing & converting raw queries to Query Builder / Eloquent. You can even drop raw sql there and in a free language provide the model names. Then just copy/paste it and voila - it works!

cardboarddignity
Автор

I was playing with chatgpt yesterday, I think it's starting point to learn laravel or something else for new dev jenior right now and for senior a good tool to find a solution hint for some problem

LuffyX
Автор

Year 2021 to year 2023 could be a huge gap of update for laravel.

mel-
Автор

Thanks a lot dear❤️
Please provide a video "how to connect remote database in laravel application"

md.anwarhossain
Автор

What if you explicitly wrote the next chat as “Make it compatible with Laravel 9”?

thetwopct
Автор

as far as I know the generator code is already in the co-pilot

menma
Автор

If you specify that you are using laravel 8 and would expect both the factory and seeder to be compatible with laravel 8, you will get much more accurate results.

mihaelatab
Автор

Chatgpt always show outdated code. Better to consult the official docs.

rahulxcr
Автор

Chat gpt always say i apologize, if I say.. Ot looks like a ke there is some problem... What if, i don't know if there is some issue...

shubhamsahuSD
Автор

Tell ChatGPT you want the classes for Laravel 9 and it will give you a better answer.

jfrosorio
Автор

i may ask the assistance of chatgbt for explanations rather than direct code solutions.

soufyaneyassin
Автор

When a data generator has been generated by another generator. Generatorception. Why am i annoyed. "CoDiNG iS coOL".

dxspx