2017 © Pedro Peláez
 

library laravel-create-frontend

image

optimistdigital/laravel-create-frontend

  • Thursday, April 26, 2018
  • by allantatter
  • Repository
  • 1 Watchers
  • 0 Stars
  • 217 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 15 % Grown

The README.md

Laravel Create Frontend

This package adds a Laravel helper method to include the js and css files from create-frontend in your html. It grabs the right path for the versioned files from asset-manifest.json, (*1)

Usage

1. Install the package:

composer require optimistdigital/laravel-create-frontend, (*2)

2. Add this to your html:

<script src="{{ frontend('app.js') }}"></script>, (*3)

3. For production, also include css:

<link rel="stylesheet" type="text/css" href={{ frontend('app.css') }}>, (*4)

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)

The Versions

26/04 2018

dev-master

9999999-dev

  Sources   Download

MIT

24/01 2018

v1.0.0

1.0.0.0

  Sources   Download

MIT