mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
32 lines
576 B
PHP
32 lines
576 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
/**
|
|
* Class File
|
|
* @package App\Models
|
|
* @version August 4, 2020, 4:36 am
|
|
*
|
|
* @property \App\Models\Document document_id
|
|
* @property text file
|
|
* @property int file_type_id
|
|
*/
|
|
class File extends AbstractModel
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'files';
|
|
|
|
protected $fillable = ['file'];
|
|
|
|
protected $dates = ['deleted_at'];
|
|
|
|
public function getFileAttribute($value)
|
|
{
|
|
return $value ? json_decode($value) : [];
|
|
}
|
|
}
|