An open API service indexing awesome lists of open source software.

https://github.com/outl1ne/laravel-create-frontend


https://github.com/outl1ne/laravel-create-frontend

Last synced: about 2 months ago
JSON representation

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)
```