2017 © Pedro Peláez
 

library laravel-page-mix

Parses mix-manifest.json to automatically implement the Javascript named after the current route.

image

mscharl/laravel-page-mix

Parses mix-manifest.json to automatically implement the Javascript named after the current route.

  • Monday, May 15, 2017
  • by mscharl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,130 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

laravel-page-mix

This package parses your mix-manifest.json to automatically implement the Javascript named after the current route., (*1)

Setup

Add the service provider to the config/app.php provider array, (*2)

MScharl\LaravelPageMix\Provider\LaravelPageMixProvider::class,

Use pageMix() instead of mix('page.js'), (*3)

<script src="{{ pageMix() }}"></script>

Config

Publish the config file by executing the following command:, (*4)

php artisan vendor:publish --provider=MScharl\\LaravelPageMix\\Provider\\LaravelPageMixProvider

It allows to configure a default file path if the route does not match any file name, (*5)

The Versions

15/05 2017

dev-master

9999999-dev

Parses mix-manifest.json to automatically implement the Javascript named after the current route.

  Sources   Download

MIT

The Requires

 

by Michael Scharl

15/05 2017

v1.0

1.0.0.0

Parses mix-manifest.json to automatically implement the Javascript named after the current route.

  Sources   Download

MIT

The Requires

 

by Michael Scharl