PHPackages                             nonetallt/jsroute - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. nonetallt/jsroute

ActiveLibrary[API Development](/categories/api)

nonetallt/jsroute
=================

Publish Laravel routes to JavaScript

1.2.0(6y ago)03061[1 PRs](https://github.com/nonetallt/laravel-js-routes-publish/pulls)MITPHPPHP &gt;=7.0

Since Oct 25Pushed 4y agoCompare

[ Source](https://github.com/nonetallt/laravel-js-routes-publish)[ Packagist](https://packagist.org/packages/nonetallt/jsroute)[ RSS](/packages/nonetallt-jsroute/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (4)Used By (0)

DEPRECATION NOTICE
------------------

[](#deprecation-notice)

This package has been deprecated. Please use the [laravel-publish-routes](https://github.com/nonetallt/laravel-publish-routes) package with [route-repository](https://github.com/nonetallt/route-repository) instead.

laravel-js-routes-publish
=========================

[](#laravel-js-routes-publish)

This package allows you to run the jsroute:publish artisan command to generate a route file that can be used for front to back routing in JavaScript. Ment to be used with [laravel-js-routes](https://github.com/nonetallt/laravel-js-routes).

Tested with Laravel 5.5+

Installation:
=============

[](#installation)

```
composer require nonetallt/jsroute --dev

```

Usage:
======

[](#usage)

```
php artisan jsroute:publish

```

Configuration
=============

[](#configuration)

Running the vendor:publish -command allows you to configure the package using the conf-file in config/jsroute.php.

```
php artisan vendor:publish --provider="Nonetallt\Jsroute\JsrouteServiceProvider"

```

More detailed documentation of option usage in config/jsroute.php

```
