404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.145.45.114: ~ $
<?php

namespace Illuminate\View;

use Illuminate\Contracts\Support\Htmlable;

class ComponentSlot implements Htmlable
{
    /**
     * The slot attribute bag.
     *
     * @var \Illuminate\View\ComponentAttributeBag
     */
    public $attributes;

    /**
     * The slot contents.
     *
     * @var string
     */
    protected $contents;

    /**
     * Create a new slot instance.
     *
     * @param  string  $contents
     * @param  array  $attributes
     * @return void
     */
    public function __construct($contents = '', $attributes = [])
    {
        $this->contents = $contents;

        $this->withAttributes($attributes);
    }

    /**
     * Set the extra attributes that the slot should make available.
     *
     * @param  array  $attributes
     * @return $this
     */
    public function withAttributes(array $attributes)
    {
        $this->attributes = new ComponentAttributeBag($attributes);

        return $this;
    }

    /**
     * Get the slot's HTML string.
     *
     * @return string
     */
    public function toHtml()
    {
        return $this->contents;
    }

    /**
     * Determine if the slot is empty.
     *
     * @return bool
     */
    public function isEmpty()
    {
        return $this->contents === '';
    }

    /**
     * Determine if the slot is not empty.
     *
     * @return bool
     */
    public function isNotEmpty()
    {
        return ! $this->isEmpty();
    }

    /**
     * Get the slot's HTML string.
     *
     * @return string
     */
    public function __toString()
    {
        return $this->toHtml();
    }
}

Filemanager

Name Type Size Permission Actions
Compilers Folder 0755
Concerns Folder 0755
Engines Folder 0755
Middleware Folder 0755
AnonymousComponent.php File 1.14 KB 0644
AppendableAttributeValue.php File 520 B 0644
Component.php File 11.65 KB 0644
ComponentAttributeBag.php File 11 KB 0644
ComponentSlot.php File 1.56 KB 0644
DynamicComponent.php File 4.66 KB 0644
Factory.php File 14.62 KB 0644
FileViewFinder.php File 7.09 KB 0644
InvokableComponentVariable.php File 1.98 KB 0644
LICENSE.md File 1.05 KB 0644
View.php File 10.88 KB 0644
ViewException.php File 903 B 0644
ViewFinderInterface.php File 1.42 KB 0644
ViewName.php File 521 B 0644
ViewServiceProvider.php File 5.11 KB 0644
composer.json File 1.02 KB 0644