Started work on Site Model
This commit is contained in:
20
app/Models/Old/Setup.php
Normal file
20
app/Models/Old/Setup.php
Normal 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));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user