Файловый менеджер - Редактировать - /home/clickysoft/public_html/securebeans.clickysoft.net/app/Models/CrmCustomer.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\Employee; use App\Models\Staff; use App\Models\License; use ESolution\DBEncryption\Traits\EncryptedAttribute; use App\Traits\Observable; class CrmCustomer extends Model { // use SoftDeletes; use HasFactory, EncryptedAttribute,Observable,SoftDeletes; public $table = 'crm_customers'; protected $dates = [ 'created_at', 'updated_at', 'deleted_at', ]; protected $fillable = [ 'id', 'name', 'email', 'country', 'code', 'sales_manager_id', 'updated_by', 'status', 'phone_no', 'created_at', 'updated_at', 'deleted_at', ]; protected $encryptable = [ 'name','email','phone_no' ]; public function status() { return $this->belongsTo(CrmStatus::class, 'status_id'); } protected function serializeDate(DateTimeInterface $date) { return $date->format('Y-m-d H:i:s'); } // public function user(){ // return $this->belongsTo(User::class); // } public function employee(){ return $this->belongsTo(Employee::class); } public function license(){ return $this->hasMany(License::class,'customer_id'); } public function staff(){ return $this->belongsTo(Staff::class,'staff_id'); } public function salesManager(){ return $this->belongsTo(AccountManager::class,'sales_manager_id'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка