2017 © Pedro Peláez
 

library laravel-assets

3ev's internal Laravel asset helpers

image

3ev/laravel-assets

3ev's internal Laravel asset helpers

  • Thursday, May 28, 2015
  • by 3ev
  • Repository
  • 3 Watchers
  • 0 Stars
  • 495 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 3 % Grown

The README.md

3ev's Laravel asset helpers

This library is used internally at 3ev as part of a custom Laravel asset pipeline. It's not yet ready for public use, but feel free to play around with it., (*1)

Installation

$ composer require "3ev/laravel-assets:~1.0"

Then, you'll need to add the following service provider to your app.php:, (*2)

// config/app.php

return [
    'providers' => [
        'Tev\Assets\Providers\AssetsServiceProvider'
    ]
];

and publish the package config:, (*3)

$ php artisan vendor:publish --provider="Tev\Assets\Providers\AssetsServiceProvider"

Usage

The default configuration sets up assets to be loaded from public/build/assets/, with the revision manifest file (from gulp-rev) configured at public/build/assets/rev-manifest.json., (*4)

The library provides a simple helper method which will load a versioned or unversioned asset seemlessly from public/build/assets/. For example, to load a compiled CSS file you might add the following to your template:, (*5)

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

or to load a static image you might do:, (*6)

<img src="{{ tev_asset('img/logo.png') }}" title="My Logo" alt="My Logo" />

The Versions

28/05 2015

dev-master

9999999-dev https://github.com/3ev/laravel-assets

3ev's internal Laravel asset helpers

  Sources   Download

The Requires

 

28/05 2015

v1.1.1

1.1.1.0 https://github.com/3ev/laravel-assets

3ev's internal Laravel asset helpers

  Sources   Download

The Requires

 

22/04 2015

v1.1.0

1.1.0.0 https://github.com/3ev/laravel-assets

3ev's internal Laravel asset helpers

  Sources   Download

The Requires

 

20/04 2015

v1.0.1

1.0.1.0 https://github.com/3ev/laravel-assets

3ev's internal Laravel asset helpers

  Sources   Download

The Requires

 

20/04 2015

v1.0.0

1.0.0.0 https://github.com/3ev/laravel-assets

3ev's internal Laravel asset helpers

  Sources   Download

The Requires