https://github.com/outl1ne/laravel-create-frontend
https://github.com/outl1ne/laravel-create-frontend
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/outl1ne/laravel-create-frontend
- Owner: outl1ne
- Created: 2018-01-24T14:34:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-22T13:38:48.000Z (about 6 years ago)
- Last Synced: 2024-05-01T11:26:08.095Z (about 1 year ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Laravel Create Frontend
This package adds a Laravel helper method to include the js and css files from [create-frontend](https://github.com/optimistdigital/create-frontend) in your html.
It grabs the right path for the versioned files from asset-manifest.json## Usage
#### 1. Install the package:
`composer require optimistdigital/laravel-create-frontend`
#### 2. Add this to your html:
``
#### 3. For production, also include css:
``
## API
```
/**
* $assetName - name of the unhashed asset in your manifest
* $manifestPath - location of your manifest - optional, defaults to public/build/asset-manifest.json
*/
frontend($assetName, $manifestPath)
```