Skip to content

BladeHelpers ​

php
class Zairakai\LaravelBladeComponents\BladeHelpers

Source: src/BladeHelpers.php

Methods ​

getOldValue() ​

php
public static function getOldValue(string $name, mixed $value): mixed

Retrieve the old input value for a form field, falling back to the given default.

isValidMimeType() ​

php
public static function isValidMimeType(string $type): bool

Determine if the given string is a valid MIME type (e.g. "text/html", "image/png").

routeIs() ​

php
public static function routeIs(string $route): bool

Determine if the current route name matches the given pattern.

Documentation of 3.2.0 , built from c93e21f on 3.2.0 by pipeline #2919741884 on 2026-10-06.