PHPackages                             bisual/laravel-shortcuts - 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. bisual/laravel-shortcuts

ActiveLibrary

bisual/laravel-shortcuts
========================

Laravel Shortcuts for Software Agencies

v1.1.5(2mo ago)110.4k↓44.3%[5 PRs](https://github.com/bisual/laravel-shortcuts/pulls)MITPHPPHP ^8.1CI failing

Since Apr 12Pushed 2mo agoCompare

[ Source](https://github.com/bisual/laravel-shortcuts)[ Packagist](https://packagist.org/packages/bisual/laravel-shortcuts)[ Docs](https://github.com/bisual/laravel-shortcuts)[ RSS](/packages/bisual-laravel-shortcuts/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (71)Used By (0)

Laravel Shortcuts for Software Agencies
=======================================

[](#laravel-shortcuts-for-software-agencies)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4f5728ffb20095dd6416418dc217bea13617d6a57c7ee9815c8d660621e7f007/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62697375616c2f6c61726176656c2d73686f7274637574732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bisual/laravel-shortcuts)[![GitHub Tests Action Status](https://camo.githubusercontent.com/befb8f63c8da39ba04e1bc485a45e649b01c21df1c3bcf8de7239510ce97f1c9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f62697375616c2f6c61726176656c2d73686f7274637574732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/bisual/laravel-shortcuts/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/f29aff20d68eec8b76fb0c76d9994eaa28511602ac7299585d9895ca3cfb9d89/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f62697375616c2f6c61726176656c2d73686f7274637574732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/bisual/laravel-shortcuts/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/c13150789a10398d85fe54410b14747206dfd5827bf3fa713084583f6b9dd6b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62697375616c2f6c61726176656c2d73686f7274637574732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bisual/laravel-shortcuts)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

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

[](#installation)

You can install the package via composer:

```
composer require bisual/laravel-shortcuts
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-shortcuts-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-shortcuts-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-shortcuts-views"
```

Custom query params usage
-------------------------

[](#custom-query-params-usage)

You can build different formats of query params to handle sort, select and with in different depths of your query.

#### -- WITH --

[](#---with---)

To indicate depth within your query param 'with' you should use this format.

```
?with=relation..relation2..relation3
```

The '..' character indicates one level deeper.

#### -- ORDER BY --

[](#---order-by---)

You can simply indicate the field to order by entering it in your query as you have done all your life.

```
?order_by=created_at
```

But you can also choose which fields of your relations to order and in which depth to do it, as well as indicate 'order\_by\_direction' in the same string.

```
?order_by=relation..relation2..relation3.created_at:desc
```

*If you do not indicate your 'order\_by\_direction' with ':' next to the field to sort by, it will sort in 'asc' direction by default*.

#### -- SELECT --

[](#---select---)

You can indicate a single field of your main table to get only that information (you don't need to add the id).

```
?select=name
```

And once again, you can choose what information about your relationship you receive at the same time. Different fields of the same relationship level will be separated by '|'.

```
?select=relation..relation2..relation3.name|description
```

#### ⚙️ Generalities

[](#️-generalities)

In all cases, to separate different relationships, regardless of the depth level, they must be separated by a ','.

```
?with=users,relation..relation2
?order_by=users.name,relation..relation2.created_at:desc
?select=users.name,relation..relation2.title|description|created_at
```

**NOTE**: The query param 'order\_by\_direction' is not necessary when using laravel-shortcuts since it is applied directly in 'order\_by', using it could cause errors.

Changelog
---------

[](#changelog)

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

License
-------

[](#license)

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

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance85

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 73.5% 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 ~18 days

Recently: every ~67 days

Total

59

Last Release

78d ago

Major Versions

v0.4.0 → v1.0.02025-03-25

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/66426940?v=4)[Bisual](/maintainers/bisual)[@bisual](https://github.com/bisual)

---

Top Contributors

[![polribas14](https://avatars.githubusercontent.com/u/47635426?v=4)](https://github.com/polribas14 "polribas14 (150 commits)")[![SirHoller](https://avatars.githubusercontent.com/u/16961264?v=4)](https://github.com/SirHoller "SirHoller (20 commits)")[![emondelodev](https://avatars.githubusercontent.com/u/132818820?v=4)](https://github.com/emondelodev "emondelodev (9 commits)")[![franaral27](https://avatars.githubusercontent.com/u/38108996?v=4)](https://github.com/franaral27 "franaral27 (7 commits)")[![ivanAgin](https://avatars.githubusercontent.com/u/34186391?v=4)](https://github.com/ivanAgin "ivanAgin (6 commits)")[![ericmp33](https://avatars.githubusercontent.com/u/60661635?v=4)](https://github.com/ericmp33 "ericmp33 (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![SergioCuadrado](https://avatars.githubusercontent.com/u/77457592?v=4)](https://github.com/SergioCuadrado "SergioCuadrado (1 commits)")

---

Tags

laravelbisuallaravel-shortcuts

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/bisual-laravel-shortcuts/health.svg)

```
[![Health](https://phpackages.com/badges/bisual-laravel-shortcuts/health.svg)](https://phpackages.com/packages/bisual-laravel-shortcuts)
```

###  Alternatives

[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

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