X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/laravel/framework/src/Illuminate/View
home
/
prisjneg
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
View
/
📁
..
📄
AnonymousComponent.php
(1.14 KB)
📄
AppendableAttributeValue.php
(520 B)
📁
Compilers
📄
Component.php
(11.9 KB)
📄
ComponentAttributeBag.php
(12.19 KB)
📄
ComponentSlot.php
(2.18 KB)
📁
Concerns
📄
DynamicComponent.php
(4.66 KB)
📁
Engines
📄
Factory.php
(14.62 KB)
📄
FileViewFinder.php
(7.09 KB)
📄
InvokableComponentVariable.php
(1.98 KB)
📄
LICENSE.md
(1.05 KB)
📁
Middleware
📄
View.php
(11.23 KB)
📄
ViewException.php
(903 B)
📄
ViewFinderInterface.php
(1.42 KB)
📄
ViewName.php
(521 B)
📄
ViewServiceProvider.php
(5.27 KB)
📄
composer.json
(1.02 KB)
Editing: ComponentSlot.php
<?php namespace Illuminate\View; use Illuminate\Contracts\Support\Htmlable; use InvalidArgumentException; 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(); } /** * Determine if the slot has non-comment content. * * @param callable|string|null $callable * @return bool */ public function hasActualContent(callable|string|null $callable = null) { if (is_string($callable) && ! function_exists($callable)) { throw new InvalidArgumentException('Callable does not exist.'); } return filter_var( $this->contents, FILTER_CALLBACK, ['options' => $callable ?? fn ($input) => trim(preg_replace("/<!--([\s\S]*?)-->/", '', $input))] ) !== ''; } /** * Get the slot's HTML string. * * @return string */ public function __toString() { return $this->toHtml(); } }
Upload File
Create Folder