Skip to content

Commit 69d69c4

Browse files
committed
prompts v1.7.3
1 parent 9e806a0 commit 69d69c4

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-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.2",
4+
"version": "1.7.3",
55
"keywords": [
66
"mastashake08",
77
"laravel",

src/Traits/HasPrompts.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace Mastashake\LaravelOpenaiApi\Traits;
4+
5+
use Mastashake\LaravelOpenaiApi\Models\Prompt;
6+
7+
trait HasPosts
8+
{
9+
public function prompts()
10+
{
11+
return $this->morphMany(Prompt::class, 'user');
12+
}
13+
}

0 commit comments

Comments
 (0)