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.
		
		
		
		
		
			
		
			
				
					
					
						
							40 lines
						
					
					
						
							723 B
						
					
					
				
			
		
		
	
	
							40 lines
						
					
					
						
							723 B
						
					
					
				<?php
 | 
						|
 | 
						|
namespace App\Models;
 | 
						|
 | 
						|
use Illuminate\Database\Eloquent\Factories\HasFactory;
 | 
						|
use Illuminate\Database\Eloquent\Model;
 | 
						|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
 | 
						|
 | 
						|
class UserAddress extends Model
 | 
						|
{
 | 
						|
    use HasFactory;
 | 
						|
 | 
						|
    /**
 | 
						|
     * The attributes that are mass assignable.
 | 
						|
     *
 | 
						|
     * @var array<int, string>
 | 
						|
     */
 | 
						|
    protected $fillable = [
 | 
						|
        'title',
 | 
						|
        'type',
 | 
						|
        'street',
 | 
						|
        'house',
 | 
						|
        'flat',
 | 
						|
        'stage',
 | 
						|
        'note',
 | 
						|
        'city_id',
 | 
						|
        'user_id',
 | 
						|
    ];
 | 
						|
 | 
						|
    public function user(): BelongsTo
 | 
						|
    {
 | 
						|
        return $this->belongsTo(User::class);
 | 
						|
    }
 | 
						|
 | 
						|
    public function city(): BelongsTo
 | 
						|
    {
 | 
						|
        return $this->belongsTo(City::class);
 | 
						|
    }
 | 
						|
}
 |