File Manager Lite
Dir:
/home/u540325668/domains/mccsociety.org/Composer.error.public_html/vendor/illuminate/support
Upload
[..]
AggregateServiceProvider.php (995 B)
Edit
Rename
Del
Arr.php (15.62 KB)
Edit
Rename
Del
Carbon.php (115 B)
Edit
Rename
Del
Composer.php (2.33 KB)
Edit
Rename
Del
DateFactory.php (7.83 KB)
Edit
Rename
Del
Enumerable.php (21.35 KB)
Edit
Rename
Del
Env.php (3.02 KB)
Edit
Rename
Del
Facades/
Rename
Del
Fluent.php (3.79 KB)
Edit
Rename
Del
HigherOrderCollectionProxy.php (1.38 KB)
Edit
Rename
Del
HigherOrderTapProxy.php (665 B)
Edit
Rename
Del
HtmlString.php (699 B)
Edit
Rename
Del
LICENSE.md (1.05 KB)
Edit
Rename
Del
LazyCollection.php (29.71 KB)
Edit
Rename
Del
Manager.php (3.98 KB)
Edit
Rename
Del
MessageBag.php (9.17 KB)
Edit
Rename
Del
NamespacedItemResolver.php (3.19 KB)
Edit
Rename
Del
Optional.php (2.58 KB)
Edit
Rename
Del
Pluralizer.php (3.13 KB)
Edit
Rename
Del
ProcessUtils.php (2 KB)
Edit
Rename
Del
Reflector.php (2.61 KB)
Edit
Rename
Del
ServiceProvider.php (8.51 KB)
Edit
Rename
Del
Str.php (27.01 KB)
Edit
Rename
Del
Testing/
Rename
Del
Traits/
Rename
Del
ViewErrorBag.php (2.56 KB)
Edit
Rename
Del
composer.json (1.47 KB)
Edit
Rename
Del
helpers.php (12.87 KB)
Edit
Rename
Del
Edit: ViewErrorBag.php
<?php namespace Illuminate\Support; use Countable; use Illuminate\Contracts\Support\MessageBag as MessageBagContract; /** * @mixin \Illuminate\Contracts\Support\MessageBag */ class ViewErrorBag implements Countable { /** * The array of the view error bags. * * @var array */ protected $bags = []; /** * Checks if a named MessageBag exists in the bags. * * @param string $key * @return bool */ public function hasBag($key = 'default') { return isset($this->bags[$key]); } /** * Get a MessageBag instance from the bags. * * @param string $key * @return \Illuminate\Contracts\Support\MessageBag */ public function getBag($key) { return Arr::get($this->bags, $key) ?: new MessageBag; } /** * Get all the bags. * * @return array */ public function getBags() { return $this->bags; } /** * Add a new MessageBag instance to the bags. * * @param string $key * @param \Illuminate\Contracts\Support\MessageBag $bag * @return $this */ public function put($key, MessageBagContract $bag) { $this->bags[$key] = $bag; return $this; } /** * Determine if the default message bag has any messages. * * @return bool */ public function any() { return $this->count() > 0; } /** * Get the number of messages in the default bag. * * @return int */ public function count() { return $this->getBag('default')->count(); } /** * Dynamically call methods on the default bag. * * @param string $method * @param array $parameters * @return mixed */ public function __call($method, $parameters) { return $this->getBag('default')->$method(...$parameters); } /** * Dynamically access a view error bag. * * @param string $key * @return \Illuminate\Contracts\Support\MessageBag */ public function __get($key) { return $this->getBag($key); } /** * Dynamically set a view error bag. * * @param string $key * @param \Illuminate\Contracts\Support\MessageBag $value * @return void */ public function __set($key, $value) { $this->put($key, $value); } /** * Convert the default bag to its string representation. * * @return string */ public function __toString() { return (string) $this->getBag('default'); } }
Simpan