workflow change

This commit is contained in:
Dev Distant
2019-08-04 09:56:40 -04:00
parent f262392672
commit fdc2772ee2
50 changed files with 1537 additions and 139 deletions

View File

@@ -6,5 +6,17 @@ use Illuminate\Database\Eloquent\Model;
class Config extends Model
{
//
protected $casts = [
'data' => 'array',
];
public function data()
{
return $this->data[0];
}
public static function getData($configName)
{
return Config::where('name',$configName)->first()->data();
}
}