Файловый менеджер - Редактировать - /home/clickysoft/public_html/securebeans.clickysoft.net/app/Models/AccountManager.php
Назад
<?php namespace App\Models; use \DateTimeInterface; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use App\Models\CrmCustomer; use App\Traits\Observable; use ESolution\DBEncryption\Traits\EncryptedAttribute; class AccountManager extends Model { // use SoftDeletes; use HasFactory, EncryptedAttribute,Observable,SoftDeletes; public $table = 'account_managers'; protected $dates = [ 'created_at', 'updated_at', ]; protected $fillable = [ 'name', 'email', 'phone_no', 'status', 'user_id', 'country', 'code', 'created_at', 'updated_at', 'updated_by' ]; protected $encryptable = [ 'name','email','phone_no' ]; protected function serializeDate(DateTimeInterface $date) { return $date->format('Y-m-d H:i:s'); } public function user(){ return $this->belongsTo(User::class,'user_id'); } public function customers(){ return $this->hasMany(CrmCustomer::class,'sales_manager_id'); } public function resellers(){ return $this->hasMany(Reseller::class,'sales_manager_id'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка