Skip to content
forked from aaronlord/laroute

Generate Laravel route URLs from JavaScript.

License

Notifications You must be signed in to change notification settings

Sh4ttel2/laroute

Repository files navigation

Laroute - Laravel Routes to JS

This package gives js the handful of helper routing functions available to Laravel.

Installation

package.json
{
	"require" : {
		"lord/laroute" : "1.0"
	}

}

app/config/app.php
	...
	
	'providers' => array(
		...
		'Lord\Laroute\LarouteServiceProvider',
	],
	
	...

Configure (optional)

app/config/packages/lord/laroute/config.php
<?php

return array(

    'template' => 'vendor/lord/laroute/src/Lord/Laroute/templates/laroute.min.txt',

    'path'     => 'public/js',

    'filename' => 'laroute',

    'namespace' => 'laroute',

);

Generate laroute.js

php artisan generate:laroute

About

Generate Laravel route URLs from JavaScript.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 58.0%
  • JavaScript 42.0%