Started work on Site Model

This commit is contained in:
Deon George
2017-12-08 10:04:02 +11:00
parent 35473014ad
commit 324861b826
12 changed files with 310 additions and 19 deletions

20
app/Models/Old/Setup.php Normal file
View File

@@ -0,0 +1,20 @@
<?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));
}
}