https://github.com/emiliolodigiani/laravel-bs3
Bootstrap 3 view partials for Laravel 5.x
https://github.com/emiliolodigiani/laravel-bs3
bootstrap bootstrap3 laravel view
Last synced: 6 months ago
JSON representation
Bootstrap 3 view partials for Laravel 5.x
- Host: GitHub
- URL: https://github.com/emiliolodigiani/laravel-bs3
- Owner: emiliolodigiani
- License: mit
- Created: 2017-12-30T13:13:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-03T14:03:12.000Z (over 8 years ago)
- Last Synced: 2025-01-27T08:30:55.453Z (over 1 year ago)
- Topics: bootstrap, bootstrap3, laravel, view
- Language: HTML
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Laravel Bootstrap 3 view partials
[](https://packagist.org/packages/emiliolodigiani/laravel-bs3)
[](https://travis-ci.org/emiliolodigiani/laravel-bs3)
[](https://packagist.org/packages/emiliolodigiani/laravel-bs3)
Package for adding precomposed Twitter Bootstrap 3 view partials, such as forms, form inputs, panels, buttons, etc.
The package is mainly intended for internal use and it's not fully documented yet.
## Installation
You can install the package via composer:
```bash
composer require emiliolodigiani/laravel-bs3
```
## Usage
In blade templates:
#### Back button
``` blade
@include('bs3::button.backButton')
@include('bs3::button.backButton', ['href' => 'SOMEURL', 'text' => 'Back', 'icon' => 'chevron-left'])
```
Back url default to previous visited url. Icon defaults to `chevron-left` (Font Awesome).
#### Panel
Simple panel
```blade
@component('bs3::component.panel', ['title' => 'Panel Title'])
Panel content.
@endcomponent
```
Full featured panel
```blade
@component('bs3::component.panel', [
'grid' => 'col-md-6', {{-- Optional --}}
'type' => 'success', {{-- Optional: (default) | success | warning | danger | info --}}
'title' => 'Panel Heading', {{-- Optional --}}
'titleIcon' => 'user' {{-- Optional, generates a Font Awesome fa-user icon --}}
])
Panel content, optional.
@slot('table') {{-- Optional --}}
...
@endslot
@slot('footer') {{-- Optional --}}
Panel footer.
@endslot
@endcomponent
... other panels ...
```
### Completion in PhpStorm
In PhpStorm setting go to `Language & Frameworks > PHP > Laravel > Views / Template`, add a new setting with the following:
- Project-Path: `vendor/emiliolodigiani/laravel-bs3/resources/views`
- Namespace: `bs3`
### Testing
``` bash
phpunit
```
or
``` bash
composer test
```
### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email emiliolodigiani@gmail.com instead of using the issue tracker.
## Credits
- [Emilio Lodigiani](https://github.com/emiliolodigiani)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.