maherelgamil / cachebusting by maherbusnes

Easy and useful tool to change version of file if it modified for laravel 4 .
25
2
2
Package Data
Maintainer Username: maherbusnes
Maintainer Contact: maherbusnes@gmail.com (maherelgamil)
Package Create Date: 2015-01-23
Package Last Update: 2015-01-23
Home Page: https://github.com/maherelgamil/cachebusting
Language: PHP
License: MIT
Last Refreshed: 2024-04-18 15:22:13
Package Statistics
Total Downloads: 25
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Cachebusting

Easy and useful tool to change version of file if it modified for laravel 4 .

Installation

Composer

Add Laravel Cachebusting to your composer.json file.

"maherelgamil/cachebusting": "dev-master"

Run composer install to get the latest version of the package.

Manually

It's recommended that you use Composer, however you can download and install from this repository.

Laravel 4

Cachebusting comes with a service provider for Laravel 4. You'll need to add it to your composer.json as mentioned in the above steps, then register the service provider with your application.

Open app/config/app.php and find the providers key. Add Cachebusting\CachebustingServiceProvider to the array.

	...
	'Maherelgamil\Cachebusting\CachebustingServiceProvider'
	...

You can also add an alias to the list of class aliases in the same app.php

	...
	'Bust'    => 'Maherelgamil\Cachebusting\Facades\Cachebusting'
	...

Useage

    	<link rel="stylesheet" type="text/css" href="{{ Bust::url('css/style.css') }}" />

License

Cachebusting is an open-sourced laravel package licensed under the MIT license