'array', 'description' => 'array' ]; protected $table = 'payment_system_items'; public function paymentSystem(): BelongsTo { return $this->belongsTo(PaymentSystemModel::class, 'payment_system_id', 'id'); } public function getTitle(): string { if (App::isLocale('ru')) { return (string) $this->title['ru']; } return (string) $this->title['uz']; } public function getDescription(): string { if ($this->description == null) { return ''; } if (App::isLocale('ru')) { return (string) $this->description['ru']; } return (string) $this->description['uz']; } public function getLogo(): string { if (!empty($this->logo)) { return Storage::url($this->logo); } return '/images/nophoto.jpg'; } }