Appearance
BladeHelpers
php
class Zairakai\LaravelBladeComponents\BladeHelpersSource: src/BladeHelpers.php
Methods
getOldValue()
php
public static function getOldValue(string $name, mixed $value): mixedRetrieve the old input value for a form field, falling back to the given default.
isValidMimeType()
php
public static function isValidMimeType(string $type): boolDetermine if the given string is a valid MIME type (e.g. "text/html", "image/png").
routeIs()
php
public static function routeIs(string $route): boolDetermine if the current route name matches the given pattern.