New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

kerkerker/autoasset

automatic asset for Laravel
6 1
Install
composer require kerkerker/autoasset:dev-master
PHP:>=5.3.0
License:MIT
Last Updated:Jan 23, 2015
Links: GitHub  ·  Packagist
Maintainer: haubar

#Auto Asset for laravel

加入
"repositories": [ { "type": "git", "url": "https://github.com/haubar/autoasset.git" } ],

在`composer.json`下指令

composer require kerkerker/autoasset

在 app/config/app.php 裡的 Providers 裡加入

'Kerkerker\Autoasset\AssetServiceProvider'

在 app/config/app.php 裡的 aliases 裡加入

'Asset' => 'Kerkerker\Autoasset\Asset'

在要使用的blade樣版中使加入

 `{{ Asset::style('') }}`
 `{{ Asset::script('') }}`

會自動加入網址對應檔案的CSS 及 javascript

example:

  `http://laravel.local/register`
  `<link media="all" type="text/css" rel="stylesheet" href="http://laravel.local/register.css">`

config 可另外加入path參數

Related Packages

djordje/laravel-asset-symlinker

This tool enable symlinking of workbench or vendor's assets to your Laravel 4 pu...

2,575 0
andheiberg/asset

Asset workflow for laravel using grunt.

262 3
orchestra/asset

Asset Component for Orchestra Platform

180,007 50
yaap/theme

Theme support for Laravel with assets, theme extends etc.

45,516 95
dragonfire1119/asset

Laravel 4 Assets Manager

7,434 0