PHPackages                             fschirinzi/laramote - 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. fschirinzi/laramote

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

fschirinzi/laramote
===================

Laravel Remote

v2.1.0(4y ago)022MITPHPPHP ^7.4|^8.0

Since Oct 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/fschirinzi/laramote)[ Packagist](https://packagist.org/packages/fschirinzi/laramote)[ Docs](https://github.com/fschirinzi/laramote)[ RSS](/packages/fschirinzi-laramote/feed)WikiDiscussions main Synced 4w ago

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

Remote for Laravel
==================

[](#remote-for-laravel)

[![Test](https://github.com/fschirinzi/laramote/workflows/Tests/badge.svg)](https://github.com/fschirinzi/translation-manager-for-laravel/actions?query=workflow%3ATests)[![StyleCI](https://camo.githubusercontent.com/c1838790f499023889a24681c71f25f2b8c30419a938b8df3a68191822eab983/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3434353836373032382f736869656c643f7374796c653d666c61742d737175617265)](https://github.styleci.io/repos/445867028)[![Latest Version on Packagist](https://camo.githubusercontent.com/43da03a1a571e3f6e579980934ca9404815f2f1dc643487bedc7252f25035fba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f667363686972696e7a692f6c6172616d6f74652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fschirinzi/laramote)[![Total Downloads](https://camo.githubusercontent.com/28a22c253939dc5ecc336cfd1f3a39ac1f426878a16c35c4441c9d93b6a7eaa2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f667363686972696e7a692f6c6172616d6f74652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fschirinzi/laramote)

LaraMote allows you to run tasks in Laravel from remote. This package is helpful if you are testing your frontend (SPA) application with [Cypress](https://www.cypress.io/) that uses a Laravel application as backend.

At the moment, these features are implemented:

✅ Artisan command
 ✅ Command with parameters
 ✅ Get Output
✅ Login User
 ✅ Custom key value
 ✅ Custom key/table column
 ✅ Custom model
 ✅ Remember
✅ Factory
 ✅ Make/Create
 ✅ Models
 ✅ Name
 ✅ States
 ✅ Amount
 ✅ Show hidden attributes
 ✅ Override attributes
✅ Model
 ✅ Search with custom key value
 ✅ Search with custom key/table column
 ✅ Search with custom model
 ✅ Get with limit
 ✅ Load relationships
 ✅ Show hidden attributes for model and relationships

**TODO**

- Make Commands working
- Make Tests
- Add wiki page with all endpoints and their parameters
- Support all class based factory features

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

[](#installation)

VersionSupported Factoriesv0.\*, v1.\*Legacy Factoriesv2.\*Class based factoriesYou can install the package via composer:

```
composer require fschirinzi/laramote --dev
```

After installing LaraMote, you *may* publish its assets using the `laramote:install` Artisan command:

```
php artisan laramote:install
```

Usage
-----

[](#usage)

LaraMote exposes the endpoints at the `/laramote` URI. By default, you will only be able to access this dashboard in the `local` and `testing` environment. However, within your `app/Providers/LaraMoteServiceProvider.php` file, there is a gate method that controls access to the LaraMote endpoints in non-local environments. You are free to modify this gate as needed to restrict access to your LaraMote endpoints:

```
/**
 * Register the LaraMote gate.
 *
 * This gate determines who can access LaraMote in non-local environments.
 *
 * @return void
 */
protected function gate()
{
    Gate::define('useLaraMote', function ($user = null) {
        return in_array(optional($user)->email, [
            //
        ]);
    });
}
```

### Examples

[](#examples)

You can import `Insomnia_example_requests.json` into the [Insomnia Rest-client](https://insomnia.rest/) to see some examples in action.

Upgrading
---------

[](#upgrading)

When upgrading to a new version of Laramote, you should re-publish LaraMote's assets:

```
php artisan laramote:publish
```

To keep the assets up-to-date and avoid issues in future updates, you may add the laramote:publish command to the post-update-cmd scripts in your application's composer.json file:

Customizing Middleware
----------------------

[](#customizing-middleware)

If needed, you can customize the middleware stack used by LaraMote routes by updating your `config/laramote.php` file. If you have not published LaraMote's configuration file, you may do so using the vendor:publish Artisan command:

```
php artisan vendor:publish --tag=laramote-config
```

Once the configuration file has been published, you may edit LaraMote's middleware by tweaking the middleware configuration option within this file:

```
/*
|--------------------------------------------------------------------------
| LaraMote Route Middleware
|--------------------------------------------------------------------------
|
| These middleware will be assigned to every Vapor UI route - giving you
| the chance to add your own middleware to this list or change any of
| the existing middleware. Or, you can simply stick with this list.
|
*/

'middleware' => [
    'api',
    EnsureUserIsAuthorized::class,
],
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

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

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Francesco Schirinzi](https://github.com/fschirinzi)
- [All Contributors](../../contributors)

I used the [Laravel/VaporUi](https://github.com/laravel/vapor-ui) package and their [documentation](https://docs.vapor.build/1.0/introduction.html#installing-the-vapor-core)as template to speed up the development of this package.

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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 97.4% 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 ~42 days

Recently: every ~56 days

Total

12

Last Release

1573d ago

Major Versions

v0.0.7 → 1.x-dev2021-06-06

v1.0.0 → v2.0.02021-06-06

PHP version history (2 changes)v0.0.1PHP ^7.3

v2.1.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed31570f7a73552ac19e1ed9a6548717896f432278a26dafe1c623024e5d2555?d=identicon)[fschirinzi](/maintainers/fschirinzi)

---

Top Contributors

[![fschirinzi](https://avatars.githubusercontent.com/u/5647342?v=4)](https://github.com/fschirinzi "fschirinzi (37 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

cypresse2ee2e-testlaraveltestfschirinzilaramote

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fschirinzi-laramote/health.svg)

```
[![Health](https://phpackages.com/badges/fschirinzi-laramote/health.svg)](https://phpackages.com/packages/fschirinzi-laramote)
```

###  Alternatives

[barryvdh/laravel-ide-helper

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

14.9k123.0M683](/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.5M858](/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)
