Файловый менеджер - Редактировать - /home/clickysoft/public_html/securebeans.clickysoft.net/app/Models/Employee.php
Назад
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use App\Models\CrmCustomer; use App\Models\License; class Employee extends Model { // use SoftDeletes; use HasFactory; public $table = 'employees'; protected $dates = [ 'created_at', 'updated_at', 'deleted_at', ]; protected $fillable = [ 'name', 'status_id', 'email', 'created_at', 'updated_at', 'deleted_at', ]; 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 customers(){ return $this->hasMany(CrmCustomer::class); } public function license(){ return $this->hasMany(License::class); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка