osb/app/Models/Old/Setup.php

20 lines
323 B
PHP
Raw Normal View History

2017-12-07 23:04:02 +00:00
<?php
namespace App\Models\Old;
use Illuminate\Database\Eloquent\Model;
class Setup extends Model
{
protected $table = 'ab_setup';
public function getModuleConfigAttribute($value)
{
return unserialize($value);
}
public function getSiteDetailsAttribute($value)
{
return unserialize(gzuncompress($value));
}
}