Add API
This commit is contained in:
@@ -8,4 +8,28 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class Address extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'addressable_type',
|
||||
'addressable_id',
|
||||
'use',
|
||||
'type',
|
||||
'text',
|
||||
'line',
|
||||
'province_id',
|
||||
'city_id',
|
||||
'district_id',
|
||||
'village_id',
|
||||
'postal_code',
|
||||
'country',
|
||||
'lat',
|
||||
'lng',
|
||||
'period_start',
|
||||
'period_end',
|
||||
];
|
||||
|
||||
public function addressable()
|
||||
{
|
||||
return $this->morphTo();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user