⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.52
Server IP:
95.217.99.93
Server:
Linux sv1.sonichosted.com 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
lifestylescentra
/
public_html
/
app
/
Models
/
View File Name :
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 = [ 'user_id', 'address', 'first_name', 'last_name', 'phone', 'email', 'city_id', 'state_id', 'country', 'zip_code', 'walk_in_customer', 'type', 'default', ]; public function user() { return $this->belongsTo(User::class); } public function getNameAttribute() { return $this->first_name . ' ' . $this->last_name; } public function city() { return $this->belongsTo(City::class); } public function state() { return $this->belongsTo(State::class); } }