PHP 8.3.31
Preview: AnonymousComponent.php Size: 1.14 KB
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/View/AnonymousComponent.php

<?php

namespace Illuminate\View;

class AnonymousComponent extends Component
{
    /**
     * The component view.
     *
     * @var string
     */
    protected $view;

    /**
     * The component data.
     *
     * @var array
     */
    protected $data = [];

    /**
     * Create a new anonymous component instance.
     *
     * @param  string  $view
     * @param  array  $data
     * @return void
     */
    public function __construct($view, $data)
    {
        $this->view = $view;
        $this->data = $data;
    }

    /**
     * Get the view / view contents that represent the component.
     *
     * @return string
     */
    public function render()
    {
        return $this->view;
    }

    /**
     * Get the data that should be supplied to the view.
     *
     * @return array
     */
    public function data()
    {
        $this->attributes = $this->attributes ?: $this->newAttributeBag();

        return array_merge(
            ($this->data['attributes'] ?? null)?->getAttributes() ?: [],
            $this->attributes->getAttributes(),
            $this->data,
            ['attributes' => $this->attributes]
        );
    }
}

Directory Contents

Dirs: 4 × Files: 16

Name Size Perms Modified Actions
Compilers DIR
- drwxrwxrwx 2025-09-17 06:52:56
Edit Download
Concerns DIR
- drwxrwxrwx 2025-09-17 06:52:56
Edit Download
Engines DIR
- drwxrwxrwx 2025-09-17 06:52:56
Edit Download
- drwxrwxrwx 2025-09-17 06:52:56
Edit Download
1.14 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
559 B lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
12.56 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
12.37 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
2.21 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
1.02 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
4.74 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
15.34 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
7.16 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
2.00 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
1.05 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
11.32 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
903 B lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
1.42 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
521 B lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
5.27 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).