⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.138
Server IP:
186.226.58.36
Server:
Linux da02.sh15.net 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Server Software:
Apache/2
PHP Version:
8.1.32
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
redesystem
/
public_html
/
sys
/
app
/
Models
/
Edit File: Client.php
$invoices * @property-read int|null $invoices_count * @property-read \App\Models\State|null $state * @method static \Illuminate\Database\Eloquent\Builder|Client whereIsPasswordSet($value) * @property string|null $vat_no * @property string|null $company_name * @method static \Illuminate\Database\Eloquent\Builder|Client whereCompanyName($value) * @method static \Illuminate\Database\Eloquent\Builder|Client whereVatNo($value) * @mixin Eloquent */ class Client extends Model { use HasFactory; protected $table = 'clients'; public $fillable = [ 'user_id', 'website', 'postal_code', 'address', 'note', 'country_id', 'state_id', 'city_id', 'is_password_set', 'vat_no', 'company_name', ]; protected $casts = [ 'website' => 'string', 'postal_code' => 'string', 'address' => 'string', 'note' => 'string', 'country_id' => 'integer', 'state_id' => 'integer', 'city_id' => 'integer', 'user_id' => 'integer', 'is_password_set' => 'boolean', 'vat_no' => 'string', 'company_name' => 'string', ]; /** * Validation rules * * @var array */ public static $rules = [ 'first_name' => 'required', 'last_name' => 'required', 'email' => 'required|email:filter|unique:users,email', 'password' => 'required|same:password_confirmation|min:6', 'postal_code' => 'required|string', 'address' => 'nullable|string', 'website' => 'nullable|url', ]; public function user(): BelongsTo { return $this->belongsTo(User::class, 'user_id', 'id'); } public function country(): BelongsTo { return $this->belongsTo(Country::class, 'country_id', 'id'); } public function state(): BelongsTo { return $this->belongsTo(State::class, 'state_id', 'id'); } public function city(): BelongsTo { return $this->belongsTo(City::class, 'city_id', 'id'); } public function invoices() { return $this->hasMany(Invoice::class); } }
Simpan