2017 © Pedro Peláez
 

library require-js

image

panugaling/require-js

  • Wednesday, November 19, 2014
  • by dashawk
  • Repository
  • 1 Watchers
  • 1 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel-RequireJS

Laravel package to automatically create files for RequireJS. This is for my personal use but if there is anyone who wants to use this package, feel free to fork it., (*1)

Installation

Install the package using composer. Edit your composer.json file and require this., (*2)

"panugaling/require-js": "dev-master"

Next is to update composer from the terminal., (*3)

composer update

Let's now add the Service Provider by opening your app/config/app.php and add a new item in the providers array., (*4)

'Panugaling\RequireJS\RequireJSServiceProvider',

If you want to change the configuration of the package, type this command in the terminal., (*5)

php artisan config:publish panugaling/require-js

That's it! You are now ready to use the package., (*6)

Usage

In your blade template, you can use it like this., (*7)

<body>
    {{ Required::load('main') }}
</body>

The argument main is the filename of our main js file. you can change it what ever you like., (*8)

The Versions

19/11 2014

dev-master

9999999-dev

  Sources   Download

The Requires

 

by Jason Panugaling