Update
This commit is contained in:
@@ -67,7 +67,7 @@ class BackgroundMedia extends Model
|
||||
protected function ids(): Attribute
|
||||
{
|
||||
return Attribute::make(
|
||||
get: fn($value, $attributes) => hashids_encode($attributes['id']),
|
||||
get: fn ($value, $attributes) => hashids_encode($attributes['id']),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,12 +30,10 @@
|
||||
* @property string $payload
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
*
|
||||
* @package App\Models
|
||||
*/
|
||||
class Category extends Model
|
||||
{
|
||||
use NodeTrait, HasTags, HasNeighbors;
|
||||
use HasNeighbors, HasTags, NodeTrait;
|
||||
|
||||
protected $table = 'categories';
|
||||
|
||||
@@ -62,7 +60,7 @@ class Category extends Model
|
||||
'meme_angles',
|
||||
'sample_captions',
|
||||
'keywords',
|
||||
'payload'
|
||||
'payload',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -29,12 +29,10 @@
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property string|null $deleted_at
|
||||
*
|
||||
* @package App\Models
|
||||
*/
|
||||
class Meme extends Model
|
||||
{
|
||||
use SoftDeletes, HasTags;
|
||||
use HasTags, SoftDeletes;
|
||||
|
||||
protected $table = 'memes';
|
||||
|
||||
@@ -49,6 +47,10 @@ class Meme extends Model
|
||||
|
||||
'meme_keywords' => 'array',
|
||||
'keywords' => 'array',
|
||||
|
||||
'action_keywords' => 'array',
|
||||
'emotion_keywords' => 'array',
|
||||
'misc_keywords' => 'array',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
@@ -63,7 +65,10 @@ class Meme extends Model
|
||||
'caption',
|
||||
'meme_keywords',
|
||||
'background',
|
||||
'keywords'
|
||||
'keywords',
|
||||
'action_keywords',
|
||||
'emotion_keywords',
|
||||
'misc_keywords',
|
||||
];
|
||||
|
||||
public function meme_media()
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
*/
|
||||
class MemeMedia extends Model
|
||||
{
|
||||
use HasNeighbors, SoftDeletes, HasTags;
|
||||
use HasNeighbors, HasTags, SoftDeletes;
|
||||
|
||||
protected $table = 'meme_medias';
|
||||
|
||||
@@ -43,6 +43,9 @@ class MemeMedia extends Model
|
||||
'duration' => 'double',
|
||||
'keywords' => 'array',
|
||||
'is_enabled' => 'boolean',
|
||||
'action_keywords' => 'array',
|
||||
'emotion_keywords' => 'array',
|
||||
'misc_keywords' => 'array',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
@@ -61,6 +64,9 @@ class MemeMedia extends Model
|
||||
'gif_url',
|
||||
'webp_url',
|
||||
'embedding',
|
||||
'action_keywords',
|
||||
'emotion_keywords',
|
||||
'misc_keywords',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
@@ -88,7 +94,7 @@ class MemeMedia extends Model
|
||||
protected function ids(): Attribute
|
||||
{
|
||||
return Attribute::make(
|
||||
get: fn($value, $attributes) => hashids_encode($attributes['id']),
|
||||
get: fn ($value, $attributes) => hashids_encode($attributes['id']),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user