Download the PHP package stonehilt/blade without Composer
On this page you can find all versions of the php package stonehilt/blade. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package blade
StoneHilt Blade
Adds blade directives that have not been integrated into the framework.
Overtime these directives may be deprecated and integrated into the core Laravel framework.
Installation
Include this library:
The StoneHiltBladeServiceProvider
will automatically be loaded and the new directives will be available.
This overrides the creation of the Factory object with a custom version.
If the project has extended the Factory object, please change the extension to use StoneHilt\Blade\View\Factory
.
Directives
form
Generate an HTML form element. The CSRF token is automatically included when the method if "POST". Automatically mocks "PUT", "PATCH" and "DELETE" requests via a hidden "_method" input.
Signature: @form(array $options)
$options
is an associative array of attributes. Special Attributes:- method Form method attribute (required if route not set)
- action Form action attribute (required if route not set)
- route Use a named route to determine Form method and action attributes All other values are mapped directly to the HTML attribute.
Example:
Signature: @form(string $method, string $action)
$method
Form method$action
Form action
Example:
inherit
Inherit properties from the parent component into a child's component view. This is useful when the child component needs to know the id or other key attributes of the parent component.
Signature: @inherit(array $mapping)
$mapping
is an associative array of parent component field to local alias
Example:
route
Return the route path based upon the name.
Signature: @route(string $name, array $parameters = [])
$name
Route name$parameters
Parameters for the route (if applicable)
Example:
All versions of blade with dependencies
ext-json Version *
laravel/framework Version ~10
symfony/http-foundation Version ^6.4