Downloads
Stars
Version
You can install the package into a Laravel app that uses Nova 4 via composer:
composer require naif/chatgpt-seeder
Publish the package's configuration file
php artisan vendor:publish --provider="Naif\ChatgptSeeder\ToolServiceProvider"
Add the below to .env file:
CHATGPT_SEEDER_API_KEY= (OpenAI API Key)
CHATGPT_SEEDER_MAX_TOKENS=1000
CHATGPT_SEEDER_GENERATE_RETRY=3
Add the tool to NovaServiceProvider.php
public function tools()
{
return [
new ChatgptSeeder()
];
}
ChatGPT Seeder's configuration file, located at config/chatgpt-seeder.php
Allows you to set and customize:
1- Access ChatGPT Seeder Tool from the Laravel Nova dashboard.
2- Fill in the required information, such as:
3- Click the "Generate" button to initiate the data generation process.
4- Data Preview will show up displaying the first 8 records.
5- Click Proceed to insert data to table, or click on Regenerate again until you are satisfied with the result.
Bug Tracker:
https://github.com/naifalshaye/chatgpt-seeder/issues
The MIT License (MIT). Please see License File for more information.