Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace PowerComponents\LivewirePowerGrid; use Closure; use Illuminate\Support\T..

Decoded Output download

<?php

namespace PowerComponents\LivewirePowerGrid;

use Closure;
use Illuminate\Support\Traits\Macroable;

/** @deprecated - Use 'PowerGridFields' instead of PowerGridColumns */
final class PowerGridColumns
{
    use Macroable;

    public array $columns = [];

    /**
     * @param string $field
     * @param Closure|null $closure
     * @deprecated - Use 'add' instead of addColumn
     * @return $this
     */
    public function addColumn(string $field, Closure $closure = null): PowerGridColumns
    {
        $this->columns[$field] = $closure ?? fn ($model) => e(strval(data_get($model, $field)));

        return $this;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace PowerComponents\LivewirePowerGrid;

use Closure;
use Illuminate\Support\Traits\Macroable;

/** @deprecated - Use 'PowerGridFields' instead of PowerGridColumns */
final class PowerGridColumns
{
    use Macroable;

    public array $columns = [];

    /**
     * @param string $field
     * @param Closure|null $closure
     * @deprecated - Use 'add' instead of addColumn
     * @return $this
     */
    public function addColumn(string $field, Closure $closure = null): PowerGridColumns
    {
        $this->columns[$field] = $closure ?? fn ($model) => e(strval(data_get($model, $field)));

        return $this;
    }
}

Function Calls

None

Variables

None

Stats

MD5 a100e9279ac4edc58ff391c5664dbbc7
Eval Count 0
Decode Time 88 ms