buonzz/laravel-twitter-bootstrap

Twitter Bootstrap Assets and Blade Extensions for Laravel

This package's canonical repository appears to be gone and the package has been frozen as a result.

v1.0.2 2014-08-23 12:37 UTC

This package is auto-updated.

Last update: 2020-01-05 22:45:54 UTC


README

This package makes the Twitter Bootstrap Assets and Blade Extensions available for use in your blade templates.

Installation

Edit your composer.json file, add this in the require property:

"buonzz/laravel-twitter-bootstrap": "1.*"

fetch the package by:

composer update

Add the service provider in your config/app.php file

'Buonzz\LaravelTwitterBootstrap\LaravelTwitterBootstrapServiceProvider',
'Buonzz\LaravelJquery\LaravelJqueryServiceProvider'

Publish the assets

php artisan asset:publish

Usage

Use this Blade template tag to insert the css tag inside the head tag

{{@twitter_bootstrap_css}}

Since Twitter Bootstrap requires jQuery, you can insert it by:

{{@jquery_js_tag}}

Use this Blade template tag to insert the js tag inside the head/body tag

{{@twitter_bootstrap_js}}

Your template should now have both the bootstrap.min.js and bootstrap.min.css loaded