Skip to content

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.

Notifications You must be signed in to change notification settings

dashawk/Laravel-RequireJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Installation

Install the package using composer. Edit your composer.json file and require this.

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

Next is to update composer from the terminal.

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.

'Panugaling\RequireJS\RequireJSServiceProvider',

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

php artisan config:publish panugaling/require-js

That's it! You are now ready to use the package.

Usage

In your blade template, you can use it like this.

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

The argument main is the filename of our main js file. you can change it what ever you like.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages