[{"data":1,"prerenderedAt":57},["ShallowReactive",2],{"project-laravel-ai-seeder":3},{"id":4,"title":5,"body":6,"description":12,"extension":26,"heroImages":27,"highlights":31,"meta":41,"navigation":42,"overview":43,"path":44,"role":45,"seo":46,"stack":47,"stem":52,"tagline":53,"type":54,"year":55,"__hash__":56},"projects\u002Fprojects\u002Flaravel-ai-seeder.md","Laravel AI Database Seeder",{"type":7,"value":8,"toc":22},"minimark",[9,13,16,19],[10,11,12],"p",{},"This is a Laravel package to fill a database with test data written by an AI instead of random words. For now it is only the base, the generation part is not written yet.",[10,14,15],{},"What exists: the service provider, a facade (AiSeeder), a config file, and the classes that read this config. In the config you choose a driver. I put two: OpenAI (gpt-4o-mini by default) and a local one that points to a local server (mistral by default). For each one you can set the batch size and how many requests run at the same time.",[10,17,18],{},"For the models, there is an abstract class called AiModelDefinition. For each model you describe its fields and, if needed, a context text to help the AI understand what the data should look like. A Faker instance is also available in each definition.",[10,20,21],{},"On the tooling side, Pint checks the code style and PHPUnit runs on GitHub Actions. The only test is a placeholder for now, and the namespace is still the Vendor placeholder.",{"title":23,"searchDepth":24,"depth":24,"links":25},"",2,[],"md",[28,29,30],"\u002Fresources\u002Fimg\u002Fai-seeder\u002Fconfig.png","\u002Fresources\u002Fimg\u002Fai-seeder\u002Fgeneration.png","\u002Fresources\u002Fimg\u002Fai-seeder\u002Fresults.png",[32,35,38],{"title":33,"description":34},"Two drivers","The config has OpenAI (gpt-4o-mini by default) and a local one (mistral by default), each with a batch size and a max concurrency.",{"title":36,"description":37},"Model definitions","An abstract class where you describe the fields of a model and a context text for the AI.",{"title":39,"description":40},"Tooling","Pint for the code style and PHPUnit on GitHub Actions.",{},true,"The base of a Laravel package to fill a database with data written by an AI instead of random words. The generation part is not written yet.","\u002Fprojects\u002Flaravel-ai-seeder","Developer",{"title":5,"description":12},[48,49,50,51],"PHP","Laravel","Faker","PHPUnit","projects\u002Flaravel-ai-seeder","A Laravel package to seed a database with AI generated data.","Personal",2026,"9ZAnftwRLhWJdWxotsVaCtefxHbXzZvT7HpBO-BbMtc",1791377584737]