gufy/bootstrap

This package is abandoned and no longer maintained. No replacement package was suggested.

Better Bootstrap Install for Laravel

Installs: 90

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

v1.0.2 2014-05-15 13:01 UTC

This package is auto-updated.

Last update: 2020-02-13 08:34:41 UTC


README

Introduction

This will make you easier to install Bootstrap Assets on your Laravel apps. This repository require Asset Pipeline. We love simple, so i hope this package can get you an easy method to install bootstrap assets.

How to install

Install this package is pretty simple, on your laravel apps. Update your composer.json by adding this code

"require":{
	"gufy/bootstrap":"dev-master"
}

Once you've done updating your composer.json, Add this script to your app/config/app.php on service providers section

'Gufy\Bootstrap\BootstrapServiceProvider',

Then, you need to run this command, so it will be automatically register bootstrap assets on javascript and css files. Make sure you only run this once.

Registering Assets

Before registering assets, you have to run this command first

php artisan assets:setup // from codesleeve/asset-pipeline command

I have already provided this assets to the structure directories

  • Bootstrap
  • Angular JS
  • Font Awesome
  • Fancybox
  • Datatables

Or type this to know what have been provided by this package.

php artisan bootstrap:list

In some case, maybe you want to install bootstrap. It's simple, type this command to install bootstrap asset.

php artisan bootstrap:install bootstrap

To make sure bootstrap is installed, check app/assets/javascripts/application.js and the content is containing //= require bootstrap and app/assets/stylesheets/application.css containing *= require bootstrap.

Updating Assets (new)

This feature available at v1.0.2. Well, since we have install feature, we will also need to update all of it. To update your assets, it's pretty simple. just type this

php artisan bootstrap:update

Or, if you want to update specific asset only, you can do this

php artisan bootstrap:update angular

That's it. Simple, isn't it?

Changelog

See Changelog

Contributing

I love contribution and collaboration. Just fork and make some patch, then make a pull request to this repository.

Thanks. :-)