Download the PHP package simonmarcellinden/scriptloader without Composer
On this page you can find all versions of the php package simonmarcellinden/scriptloader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download simonmarcellinden/scriptloader
More information about simonmarcellinden/scriptloader
Files in simonmarcellinden/scriptloader
Package scriptloader
Short Description Package for load dynamically Scripts & Styles
License MIT
Homepage https://github.com/simonmarcellinden/scriptloader
Informations about the package scriptloader
ScriptLoader for Laravel
With this package you can manage header Styles and Scripts Tags to load from Laravel controllers.
Installation
From the command line run
Laravel <= 5.4
Once ScriptLoader is installed you need to register the service provider with the application.
Open up config/app.php
and find the providers
key.
Add the service provider to config/app.php
Optionally include the Facade in config/app.php if you'd like.
Publish the configurations
Run this on the command line from the root of your project:
A configuration file will be publish to config/scriptloader.php
.
Usage
Examples
Add a Script or Style Source directly into your route or controller
app/Http/Controllers/Controller.php
app/Http/Controllers/HomeController.php
resources/views/layouts/app.blade.php
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Simon Marcel Linden
- All Contributors
License
MIT. Please see the license file for more information.