This repository was archived by the owner on Sep 23, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15a6340
commit 32205cc
Showing
1 changed file
with
5 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,9 @@ | ||
[](https://travis-ci.org/GeneaLabs/bones-macros) [](https://packagist.org/packages/genealabs/bones-macros) [](https://packagist.org/packages/genealabs/bones-macros) [](https://packagist.org/packages/genealabs/bones-macros) | ||
|
||
# Laravel Bones Macros (bones-macros) | ||
|
||
# Laravel Casts | ||
## Installation | ||
|
||
To install bones-macros in Laravel 5.2: | ||
|
||
To install in Laravel 5.0+: | ||
```sh | ||
composer require "genealabs/bones-macros":"0.3.*" | ||
``` | ||
|
||
or add it to you composer.json file: | ||
|
||
```json | ||
"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: | ||
```php | ||
// 'providers' => [ | ||
GeneaLabs\Bones\Macros\BonesMacrosServiceProvider::class, | ||
// ]; | ||
composer require "genealabs/bones-macros":"0.1.*" | ||
``` | ||
|
||
## Usage | ||
|
||
These HTML and FORM macros are intended to be used mainly in Blade templates to reduce tedium. | ||
|
||
## Methods | ||
|
||
The following methods are available to use: | ||
|
||
```php | ||
// 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+ | ||
## Work In Progress | ||
This is an evolution of GeneaLabs/Bones-Macros, more details to come. |