aboutsummaryrefslogtreecommitdiffhomepage
path: root/api/Posts/Models/PostImage.php
diff options
context:
space:
mode:
Diffstat (limited to 'api/Posts/Models/PostImage.php')
-rw-r--r--api/Posts/Models/PostImage.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/api/Posts/Models/PostImage.php b/api/Posts/Models/PostImage.php
new file mode 100644
index 0000000..637d1ec
--- /dev/null
+++ b/api/Posts/Models/PostImage.php
@@ -0,0 +1,21 @@
+<?php
+
+namespace Api\Posts\Models;
+
+use Laravel\Passport\HasApiTokens;
+use Illuminate\Notifications\Notifiable;
+use Illuminate\Database\Eloquent\Model;
+
+class PostImage extends Model
+{
+ use HasApiTokens, Notifiable;
+
+ /**
+ * The attributes that are mass assignable.
+ *
+ * @var array
+ */
+ protected $fillable = [
+ 'user_id', 'description', 'image_path',
+ ];
+}