20 lines
391 B
PHP
20 lines
391 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
|
|
|
/**
|
|
* @mixin IdeHelperAddress
|
|
*/
|
|
class Address extends Model
|
|
{
|
|
protected $fillable = ['first_name', 'last_name', 'street', 'city', 'state', 'pin'];
|
|
|
|
public function users(): BelongsToMany
|
|
{
|
|
return $this->belongsToMany(User::class);
|
|
}
|
|
}
|