Downloads
Stars
Version
This package parses your mix-manifest.json
to automatically implement the
Javascript named after the current route.
Add the service provider to the config/app.php
provider array
CampaigningBureau\LaravelPageMix\Provider\LaravelPageMixProvider::class,
Use pageMix()
instead of mix('page.js')
<script src="{{ pageMix() }}"></script>
Publish the config file by executing the following command:
php artisan vendor:publish --provider=CampaigningBureau\\LaravelPageMix\\Provider\\LaravelPageMixProvider
It allows to configure a default file path if the route does not match any file name