feature
This commit is contained in:
@@ -8,14 +8,17 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
class Photo extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'device_id', 'sha256', 'path', 'width', 'height', 'size', 'counters_json',
|
||||
'device_id',
|
||||
'sha256',
|
||||
'path',
|
||||
'size',
|
||||
'x_hit',
|
||||
'upload_count',
|
||||
'process_index',
|
||||
'text_count',
|
||||
'barcode_count',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return ['counters_json' => 'array'];
|
||||
}
|
||||
|
||||
public function device(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Device::class);
|
||||
|
||||
Reference in New Issue
Block a user