Файловый менеджер - Редактировать - /home/clickysoft/public_html/jm5-api.clickysoft.net/app/Models/OrderInvoice.php
Назад
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; class OrderInvoice extends Model { use HasFactory; protected $guarded = ['_token']; public function order(): BelongsTo { return $this->belongsTo(Order::class, 'order_id'); } protected function getInvoiceUrlAttribute() { return $this->invoice_number ? asset('storage/order/'.$this->pdf) : ''; } protected function getInvoicePathAttribute() { return $this->invoice_number ? public_path('storage/order/'.$this->pdf) : ''; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка