|
@@ -2,16 +2,9 @@
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
-use Illuminate\Database\Eloquent\Builder;
|
|
|
|
|
-use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
-/**
|
|
|
|
|
- * @mixin Builder
|
|
|
|
|
- * @method static Builder|static where($column, $operator = null, $value = null, $boolean = 'and')
|
|
|
|
|
- */
|
|
|
|
|
-class Config extends Model
|
|
|
|
|
|
|
+class Config extends BaseModel
|
|
|
{
|
|
{
|
|
|
protected $table = 'config';
|
|
protected $table = 'config';
|
|
|
- protected $hidden = ['created_at', 'updated_at'];
|
|
|
|
|
protected $fillable = ['field', 'val', 'remark','group_id'];
|
|
protected $fillable = ['field', 'val', 'remark','group_id'];
|
|
|
/*
|
|
/*
|
|
|
* group_id
|
|
* group_id
|
|
@@ -21,14 +14,4 @@ class Config extends Model
|
|
|
*
|
|
*
|
|
|
*
|
|
*
|
|
|
*/
|
|
*/
|
|
|
-
|
|
|
|
|
- protected function getCreatedAtAttribute($value)
|
|
|
|
|
- {
|
|
|
|
|
- return \Carbon\Carbon::parse($value)->setTimezone('Asia/Shanghai')->format('Y-m-d H:i:s');
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- protected function getUpdatedAtAttribute($value)
|
|
|
|
|
- {
|
|
|
|
|
- return \Carbon\Carbon::parse($value)->setTimezone('Asia/Shanghai')->format('Y-m-d H:i:s');
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|