Laravel Bootstrap 3 view partials
, (*1)
Package for adding precomposed Twitter Bootstrap 3 view partials, such as forms, form inputs, panels, buttons, etc., (*2)
The package is mainly intended for internal use and it's not fully documented yet., (*3)
Installation
You can install the package via composer:, (*4)
composer require emiliolodigiani/laravel-bs3
Usage
In blade templates:, (*5)
``` blade
@include('bs3::button.backButton')
@include('bs3::button.backButton', ['href' => 'SOMEURL', 'text' => 'Back', 'icon' => 'chevron-left']), (*6)
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'])
<p>Panel content.</p>
@endcomponent
Full featured panel, (*7)
@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., (*8)
@slot('table') {{-- Optional --}}
@endslot
@slot('footer') {{-- Optional --}}
Panel footer., (*9)
@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:, (*10)
- Project-Path:
vendor/emiliolodigiani/laravel-bs3/resources/views
- Namespace:
bs3
Testing
``` bash
phpunit, (*11)
or
``` bash
composer test
Changelog
Please see CHANGELOG for more information what has changed recently., (*12)
Contributing
Please see CONTRIBUTING for details., (*13)
Security
If you discover any security related issues, please email emiliolodigiani@gmail.com instead of using the issue tracker., (*14)
Credits
License
The MIT License (MIT). Please see License File for more information., (*15)