One Hat Cyber Team
Your IP :
216.73.216.133
Server IP :
87.118.122.21
Server :
Linux svdm-server5.de 6.12.57+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.57-1 (2025-11-05) x86_64
Server Software :
Apache
PHP Version :
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
users
/
svd-saarleute
/
www
/
_go_biz
/
app
/
Edit File:
User.php
<?php /* |-------------------------------------------------------------------------- | GoBiz vCard SaaS |-------------------------------------------------------------------------- | Developed by NativeCode © 2021 - https://nativecode.in | All rights reserved | Unauthorized distribution is prohibited |-------------------------------------------------------------------------- */ namespace App; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Log; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use ProtoneMedia\LaravelVerifyNewEmail\MustVerifyNewEmail; class User extends Authenticatable implements MustVerifyEmail { use MustVerifyNewEmail, Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'user_id', 'profile_image', 'name', 'email', 'mobile_number', 'email_verified_at', 'auth_type', 'password', 'auth_token', 'device_token', 'plan_id', 'term', 'plan_validity', 'plan_activation_date', 'plan_details', ]; /** * The attributes that should be hidden for arrays. * * @var array */ protected $hidden = [ 'password', 'remember_token', ]; /** * The attributes that should be cast to native types. * * @var array */ protected $casts = [ 'email_verified_at' => 'datetime', ]; /** * Define relationship with Role model. */ public function roles() { return $this->belongsTo('App\Models\Role'); } /** * Send new email verification notification. */ public function sendEmailVerificationNotification() { try { // Retrieve config by key instead of index for safer access $config = DB::table('config')->pluck('config_value', 'config_key'); if ($config[43]->config_value == '1') { try { $this->newEmail($this->getEmailForVerification()); } catch (\Exception $e) { Log::error('Email verification notification failed', [ 'user_id' => $this->id ?? null, 'error' => $e->getMessage(), ]); } } } catch (\Throwable $e) { Log::error('Email verification notification failed', [ 'user_id' => $this->id ?? null, 'error' => $e->getMessage(), ]); } } }
Simpan