Decoded Output

Download
<?php

declare(strict_types=1);

namespace App;

use Illuminate\Database\Eloquent\Model;

class GuardedModel extends Model
{
    protected $guarded = ['text'];

    /**
     * @param  array<string, mixed>  $attributes
     */
    public function __construct(array $attributes = [])
    {
        $attributes['name'] = $attributes['name'] ?? 'foo';

        parent::__construct($attributes);
    }
}
 ?>

Function Calls

None

Variables

None

Stats

MD50007347612744567703ae0320dd8f950
Eval Count0
Decode Time98 ms

Original Code

<?php

declare(strict_types=1);

namespace App;

use Illuminate\Database\Eloquent\Model;

class GuardedModel extends Model
{
    protected $guarded = ['text'];

    /**
     * @param  array<string, mixed>  $attributes
     */
    public function __construct(array $attributes = [])
    {
        $attributes['name'] = $attributes['name'] ?? 'foo';

        parent::__construct($attributes);
    }
}