mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
update settings add state charges TAB
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Relations\HasOne;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
/**
|
||||
@@ -21,10 +21,10 @@ class State extends AbstractModel
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
/**
|
||||
* @return HasOne
|
||||
* @return BelongsTo
|
||||
*/
|
||||
public function country(): HasOne
|
||||
public function country(): BelongsTo
|
||||
{
|
||||
return $this->hasOne(Country::class, 'country_id', 'id');
|
||||
return $this->belongsTo(Country::class, 'country_id', 'id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user