You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
573 B
35 lines
573 B
<?php
|
|
|
|
namespace App\Model\v3;
|
|
|
|
use App\Model\Model;
|
|
use Hyperf\Database\Model\SoftDeletes;
|
|
|
|
class UserAddress extends Model
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'lanzu_user_address';
|
|
|
|
protected $fillable = [
|
|
'id',
|
|
'user_id',
|
|
'user_name',
|
|
'address',
|
|
'doorplate',
|
|
'gender',
|
|
'lat',
|
|
'lng',
|
|
'tel',
|
|
'tags'
|
|
];
|
|
|
|
protected $casts = [
|
|
'tags' => 'array'
|
|
];
|
|
|
|
public function setTagsAttribute($value)
|
|
{
|
|
return json_encode(json_decode($value, true));
|
|
}
|
|
}
|