Файловый менеджер - Редактировать - /home/clickysoft/public_html/securebeans.clickysoft.net/app/Models/License.php
Назад
<?php namespace App\Models; use \DateTimeInterface; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use App\Models\CrmCustomer; use App\Models\ProductLicense; use App\Models\Product; use Carbon\Carbon; use ESolution\DBEncryption\Traits\EncryptedAttribute; use App\Models\Reseller; use App\Traits\Observable; use Illuminate\Database\Eloquent\SoftDeletes; class License extends Model { use HasFactory, EncryptedAttribute,Observable,SoftDeletes; public $table = 'license'; protected $dates = [ 'created_at', 'updated_at', 'deleted_at', ]; protected $fillable = [ 'customer_id', 'contract_number', 'support_site_id', 'file', 'product_id', 'start_date', 'end_date', 'quantity', 'reseller_1', 'reseller_2', 'is_disable', 'other_info', 'status', 'created_at', 'updated_at', 'deleted_at', ]; protected $encryptable = [ 'contract_number','support_site_id','other_info','file' ]; public function customer(){ return $this->belongsTo(CrmCustomer::class,'customer_id'); } public function product(){ return $this->belongsTo(Product::class,'product_id'); } public function productLicense(){ return $this->hasMany(ProductLicense::class); } public function start_date($value) { return $date = Carbon::now()->format('j-f-Y'); } public function reseller1(){ return $this->belongsTo(Reseller::class,'reseller_1'); } public function reseller2(){ return $this->belongsTo(Reseller::class,'reseller_2'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка