Skip to content

Commit e5258dc

Browse files
committed
create HasPrompts trait and added a polymorphic relationship.
1 parent 62435cc commit e5258dc

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mastashake08/laravel-openai-api",
33
"description": "Add an OpenAI API and Artisan command easily into your projects. Generate images, or text. Can be integrated with Laravel Sanctum for token based access.",
4-
"version": "1.7.0",
4+
"version": "1.7.1",
55
"keywords": [
66
"mastashake08",
77
"laravel",

database/migrations/create_openai_api_table.php.stub

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ return new class extends Migration
1515
$table->id();
1616
$table->string('prompt_text');
1717
$table->json('data');
18+
$table->unsignedBigInteger('user_id');
19+
$table->string('user_type');
1820
$table->timestamps();
1921
});
2022
}

src/Traits/HasPrompts.php

Whitespace-only changes.

0 commit comments

Comments
 (0)