Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/././../../vendor/maatwebsite/excel/./src/Events/../Events/..
الملفات الموجودة في هذا الـ Path:
.
..
Cache
Cell.php
ChunkReader.php
Concerns
Console
DefaultValueBinder.php
DelegatedMacroable.php
Events
Excel.php
ExcelServiceProvider.php
Exceptions
Exporter.php
Facades
Factories
Fakes
Files
Filters
HasEventBus.php
HeadingRowImport.php
Helpers
Importer.php
Imports
Jobs
MappedReader.php
Mixins
QueuedWriter.php
Reader.php
RegistersCustomConcerns.php
Row.php
SettingsProvider.php
Sheet.php
Transactions
Validators
Writer.php

مشاهدة ملف: DefaultValueBinder.php

<?php

namespace Maatwebsite\Excel;

use PhpOffice\PhpSpreadsheet\Cell\Cell;
use PhpOffice\PhpSpreadsheet\Cell\DefaultValueBinder as PhpSpreadsheetDefaultValueBinder;

class DefaultValueBinder extends PhpSpreadsheetDefaultValueBinder
{
    /**
     * @param  Cell  $cell  Cell to bind value to
     * @param  mixed  $value  Value to bind in cell
     * @return bool
     */
    public function bindValue(Cell $cell, $value)
    {
        if (is_array($value)) {
            $value = \json_encode($value);
        }

        return parent::bindValue($cell, $value);
    }
}