Your IP : 216.73.217.77


Current Path : /home/users/unlimited/www/dabbawali.sizzlingcafe.co.in/app/Models/
Upload File :
Current File : /home/users/unlimited/www/dabbawali.sizzlingcafe.co.in/app/Models/Address.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Address extends Model
{
    use HasFactory;

    protected $table = "addresses";
    protected $fillable    = ['label', 'address', 'user_id', 'apartment', 'latitude', 'longitude'];
    protected $casts = [
        'id'        => 'integer',
        'label'     => 'string',
        'address'   => 'string',
        'user_id'   => 'integer',
        'apartment' => 'string',
        'latitude'  => 'string',
        'longitude' => 'string',
    ];

    public function user()
    {
        return $this->belongsTo(User::class)->withTrashed();
    }
}