mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-10-02 12:13:02 -04:00
30 lines
614 B
PHP
30 lines
614 B
PHP
<?php
|
|
namespace Modules\WTIJobBoard\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class JobRequestBadge extends Model
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $dates = ['deleted_at'];
|
|
protected $table = "job_request_badges";
|
|
protected $guarded = ["id"];
|
|
|
|
protected $casts = [
|
|
'categories' => 'array',
|
|
'video_types' => 'array',
|
|
'active' => 'boolean'
|
|
];
|
|
|
|
protected $appends = [
|
|
'image_url'
|
|
];
|
|
|
|
public function getImageUrlAttribute()
|
|
{
|
|
return "/public/storage/{$this->image}";
|
|
}
|
|
}
|