PHPackages                             vmitchell85/vue-route - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vmitchell85/vue-route

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vmitchell85/vue-route
=====================

Adds a easy route macro to display a Vue.js component

v0.1.1-alpha(7y ago)06MITPHPPHP ^7.1

Since Feb 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/vmitchell85/vue-route)[ Packagist](https://packagist.org/packages/vmitchell85/vue-route)[ Docs](https://github.com/vmitchell85/vue-route)[ RSS](/packages/vmitchell85-vue-route/feed)WikiDiscussions master Synced 1mo ago

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

Laravel Vue.js Route
====================

[](#laravel-vuejs-route)

[![Latest Version on Packagist](https://camo.githubusercontent.com/92d2b88d512add9f3b7b48875916d75dc72db57d47d2eeccf042ba18623f9ecb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f766d69746368656c6c38352f7675652d726f7574652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vmitchell85/vue-route)[![Total Downloads](https://camo.githubusercontent.com/a463a9918126d43dc6928c9a0a0286c476c96b39b0ab8126290954ac25c9429b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766d69746368656c6c38352f7675652d726f7574652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vmitchell85/vue-route)

Laravel Vue.js Route is a macro added onto the Route class to make loading a Vue.js component as the whole view simple.

Inspired by `Route::view()`, which returns a blade view bypassing a controller, The `Route::vue()` function will, by default, load a specified Vue.js component into the default layout's `content` section.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require vmitchell85/vue-route
```

Usage
-----

[](#usage)

After installing the package via composer you can just call the new `vue` macro from the `Route` facade.

```
Route::vue('/my-route-path', 'users-index');
```

The macro automatically assumes you want to use the `layouts.app` layout file and injects the Vue.js component into the `content` section.

If you would like to specify the layout file and/or section you want to use additional parameters can be added:

```
Route::vue('/my-route-path', 'users-index', 'layouts.fancy', 'body');
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Vincent Mitchell](https://github.com/vmitchell85)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2651d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1248035?v=4)[Vince Mitchell](/maintainers/vmitchell85)[@vmitchell85](https://github.com/vmitchell85)

---

Top Contributors

[![vmitchell85](https://avatars.githubusercontent.com/u/1248035?v=4)](https://github.com/vmitchell85 "vmitchell85 (3 commits)")

---

Tags

laravelpackagevuejsvmitchell85vue-route

### Embed Badge

![Health badge](/badges/vmitchell85-vue-route/health.svg)

```
[![Health](https://phpackages.com/badges/vmitchell85-vue-route/health.svg)](https://phpackages.com/packages/vmitchell85-vue-route)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M682](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M157](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M210](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M857](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
