X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/laravel/framework/src/Illuminate/Support
home
/
prisjneg
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Support
/
📁
..
📄
AggregateServiceProvider.php
(995 B)
📄
Benchmark.php
(1.93 KB)
📄
Carbon.php
(1.25 KB)
📄
Composer.php
(6.86 KB)
📄
ConfigurationUrlParser.php
(4.25 KB)
📄
DateFactory.php
(7.76 KB)
📄
DefaultProviders.php
(3.07 KB)
📄
Env.php
(2.96 KB)
📁
Exceptions
📁
Facades
📄
Fluent.php
(4.14 KB)
📄
HigherOrderTapProxy.php
(665 B)
📄
HtmlString.php
(1.03 KB)
📄
InteractsWithTime.php
(1.55 KB)
📄
Js.php
(3.44 KB)
📄
LICENSE.md
(1.05 KB)
📄
Lottery.php
(5.66 KB)
📄
Manager.php
(4.42 KB)
📄
MessageBag.php
(10.09 KB)
📄
MultipleInstanceManager.php
(4.25 KB)
📄
NamespacedItemResolver.php
(3.35 KB)
📄
Number.php
(8.09 KB)
📄
Optional.php
(2.64 KB)
📄
Pluralizer.php
(2.84 KB)
📄
ProcessUtils.php
(2 KB)
📄
Reflector.php
(4.5 KB)
📄
ServiceProvider.php
(10.99 KB)
📄
Sleep.php
(10.56 KB)
📄
Str.php
(52.55 KB)
📄
Stringable.php
(33.36 KB)
📁
Testing
📄
Timebox.php
(1.62 KB)
📁
Traits
📄
ValidatedInput.php
(12.08 KB)
📄
ViewErrorBag.php
(2.57 KB)
📄
composer.json
(1.74 KB)
📄
helpers.php
(10.6 KB)
Editing: Optional.php
<?php namespace Illuminate\Support; use ArrayAccess; use ArrayObject; use Illuminate\Support\Traits\Macroable; class Optional implements ArrayAccess { use Macroable { __call as macroCall; } /** * The underlying object. * * @var mixed */ protected $value; /** * Create a new optional instance. * * @param mixed $value * @return void */ public function __construct($value) { $this->value = $value; } /** * Dynamically access a property on the underlying object. * * @param string $key * @return mixed */ public function __get($key) { if (is_object($this->value)) { return $this->value->{$key} ?? null; } } /** * Dynamically check a property exists on the underlying object. * * @param mixed $name * @return bool */ public function __isset($name) { if (is_object($this->value)) { return isset($this->value->{$name}); } if (is_array($this->value) || $this->value instanceof ArrayObject) { return isset($this->value[$name]); } return false; } /** * Determine if an item exists at an offset. * * @param mixed $key * @return bool */ public function offsetExists($key): bool { return Arr::accessible($this->value) && Arr::exists($this->value, $key); } /** * Get an item at a given offset. * * @param mixed $key * @return mixed */ public function offsetGet($key): mixed { return Arr::get($this->value, $key); } /** * Set the item at a given offset. * * @param mixed $key * @param mixed $value * @return void */ public function offsetSet($key, $value): void { if (Arr::accessible($this->value)) { $this->value[$key] = $value; } } /** * Unset the item at a given offset. * * @param string $key * @return void */ public function offsetUnset($key): void { if (Arr::accessible($this->value)) { unset($this->value[$key]); } } /** * Dynamically pass a method to the underlying object. * * @param string $method * @param array $parameters * @return mixed */ public function __call($method, $parameters) { if (static::hasMacro($method)) { return $this->macroCall($method, $parameters); } if (is_object($this->value)) { return $this->value->{$method}(...$parameters); } } }
Upload File
Create Folder