genealabs / bones-macros
Useful form macros for Laravel's Blade template engine.
Installs: 11 252
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- php: >=5.5.9
- illuminate/support: 5.2.*
- laravelcollective/html: 5.2.*
Requires (Dev)
This package is auto-updated.
Last update: 2022-02-01 12:37:48 UTC
README
THIS PACKAGE IS NO LONGER MAINTAINED, USE https://github.com/GeneaLabs/laravel-casts instead.
Laravel Bones Macros (bones-macros)
Installation
To install bones-macros in Laravel 5.2:
composer require "genealabs/bones-macros":"0.3.*"
or add it to you composer.json file:
"require": { /* ... */, "genealabs/bones-macros": "0.3.*" }, /* ... */
If you are using Laravel < 5.2 use version 0.2.*
.
And then add the service provider to your app.php config file:
// 'providers' => array( 'GeneaLabs\BonesMacros\BonesMacrosServiceProvider', // );
Usage
These HTML and FORM macros are intended to be used mainly in Blade tempaltes to reduce tedium.
Methods
The following methods are available to use:
// provides a Bootstrap-compatible cancel button that will take you to the previous page. {{ Form::cancelButton() }} // provides a select list with a range of intervals {{ Form::selectRangeWithInterval($name, $start, $end, $interval, $default = null, $attributes = []) }} // provides ability to slugify any text {{ HTML::slugify($text) }}
Dependencies
At this time this package requires:
- Laravel 4.2+
- Bootstrap 3.1+