File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/laravel/framework/src/Illuminate/Collections
Upload
[..]
Arr.php (34.97 KB)
Edit
Rename
Del
Enumerable.php (38.34 KB)
Edit
Rename
Del
HigherOrderCollectionProxy.php (1.56 KB)
Edit
Rename
Del
ItemNotFoundException.php (118 B)
Edit
Rename
Del
LICENSE.md (1.05 KB)
Edit
Rename
Del
LazyCollection.php (50.52 KB)
Edit
Rename
Del
Traits/
Rename
Del
composer.json (1.25 KB)
Edit
Rename
Del
functions.php (687 B)
Edit
Rename
Del
helpers.php (8.04 KB)
Edit
Rename
Del
Edit: functions.php
<?php namespace Illuminate\Support; if (! function_exists('Illuminate\Support\enum_value')) { /** * Return a scalar value for the given value that might be an enum. * * @internal * * @template TValue * @template TDefault * * @param TValue $value * @param TDefault|callable(TValue): TDefault $default * @return ($value is empty ? TDefault : mixed) */ function enum_value($value, $default = null) { return match (true) { $value instanceof \BackedEnum => $value->value, $value instanceof \UnitEnum => $value->name, default => $value ?? value($default), }; } }
Simpan