Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/rentpix.corals.io/vendor/yajra/laravel-datatables-html/src/Html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/rentpix.corals.io/vendor/yajra/laravel-datatables-html/src/Html/ColumnDefinition.php
<?php

namespace Yajra\DataTables\Html;

/**
 * @see https://datatables.net/reference/option/columnDefs
 */
class ColumnDefinition extends Column
{
    /**
     * @param  array  $attributes
     */
    public function __construct($attributes = [])
    {
        parent::__construct($attributes);

        $this->attributes = $attributes;
    }

    /**
     * @param  array|string|int  $value
     * @return $this
     * @see https://datatables.net/reference/option/columnDefs.targets
     */
    public function targets(array|string|int $value): static
    {
        $this->attributes['targets'] = $value;

        return $this;
    }

    /**
     * @param  array  $value
     * @return $this
     * @see https://datatables.net/reference/option/columns
     */
    public function columns(array $value): static
    {
        $this->attributes['columns'] = $value;

        return $this;
    }

    /**
     * @return array
     */
    public function toArray(): array
    {
        $array = parent::toArray();

        unset($array['attributes']);

        return $array;
    }
}

Spamworldpro Mini