cleaniquecoders /
profile
| 1 | <?php |
||
| 2 | |||
| 3 | namespace CleaniqueCoders\Profile\Concerns; |
||
| 4 | |||
| 5 | use Illuminate\Database\Eloquent\Relations\MorphMany; |
||
| 6 | |||
| 7 | /** |
||
| 8 | * Addressable Trait. |
||
| 9 | */ |
||
| 10 | trait Addressable |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Get all addresses. |
||
| 14 | */ |
||
| 15 | public function addresses(): MorphMany |
||
| 16 | { |
||
| 17 | return $this->morphMany( |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 18 | config('profile.providers.address.model'), |
||
| 19 | config('profile.providers.address.type') |
||
| 20 | ); |
||
| 21 | } |
||
| 22 | } |
||
| 23 |