PHPackages                             thedoctor0/laravel-stubs - 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. thedoctor0/laravel-stubs

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

thedoctor0/laravel-stubs
========================

Opinionated versions of the Laravel stubs for Artisan make commands

v2.0.0(1w ago)27MITPHPPHP ^8.2CI passing

Since Jun 25Pushed 1w ago1 watchersCompare

[ Source](https://github.com/TheDoctor0/laravel-stubs)[ Packagist](https://packagist.org/packages/thedoctor0/laravel-stubs)[ Docs](https://github.com/TheDoctor0/laravel-stubs)[ RSS](/packages/thedoctor0-laravel-stubs/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (6)Versions (5)Used By (0)

Laravel Stubs
=============

[](#laravel-stubs)

[![Tests](https://github.com/TheDoctor0/laravel-stubs/actions/workflows/tests.yml/badge.svg)](https://github.com/TheDoctor0/laravel-stubs/actions/workflows/tests.yml)[![Packagist](https://camo.githubusercontent.com/24277ea11f29fb93c18226e81b4816b95a602fa5d0b60f128eaaec25144a5fff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f546865446f63746f72302f6c61726176656c2d73747562732e737667)](https://packagist.org/packages/TheDoctor0/laravel-stubs)[![Packagist](https://camo.githubusercontent.com/5615874fd8adcd75afbc3d46e0c16dabc54371a532de3719d0b2678abfff9a18/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f546865446f63746f72302f6c61726176656c2d73747562732e737667)](https://packagist.org/packages/TheDoctor0/laravel-stubs)[![PHP](https://camo.githubusercontent.com/7c087d670c2c7fdba69ae5910d69d30f66ef9e41b26b499eb8eb0bde8b179543/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f546865446f63746f72302f6c61726176656c2d73747562732f7068702e737667)](https://packagist.org/packages/TheDoctor0/laravel-stubs)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/TheDoctor0/laravel-stubs/blob/master/LICENSE.md)

This package contains opinionated versions of the Laravel stubs for Artisan `make` commands.

Version support
---------------

[](#version-support)

PackageLaravelPHP2.x11.x, 12.x, 13.x8.2+1.x8.x7.4+Changes
-------

[](#changes)

- `strict_types` are declared by default
- return type hints are present where possible
- missing parameter type hints have been added
- migrations use anonymous classes and don't have a `down` function
- the model stub ships a `casts()` method
- form requests don't have an `authorize` function
- extra stubs Laravel doesn't publish: enums, plain classes, traits, scopes, inbound casts, singleton controllers, and Pest tests

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

[](#installation)

You can install the package via composer:

```
composer require thedoctor0/laravel-stubs --dev
```

If you want to keep stubs up to date, add this hook to your composer.json file:

```
"scripts": {
    "post-update-cmd": [
        "@php artisan stubs:publish --force"
    ]
}
```

Usage
-----

[](#usage)

You can publish the stubs using this command:

```
php artisan stubs:publish
```

Already-published stubs are skipped unless you pass `--force`.

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [Freek Van der Herten](https://github.com/freekmurze)

License
-------

[](#license)

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

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance98

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 86.7% 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 ~2237 days

Total

2

Last Release

8d ago

Major Versions

1.0.0 → v2.0.02026-08-10

PHP version history (2 changes)1.0.0PHP ^7.4

v2.0.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16612504?v=4)[Dawid Janik](/maintainers/TheDoctor0)[@TheDoctor0](https://github.com/TheDoctor0)

---

Top Contributors

[![TheDoctor0](https://avatars.githubusercontent.com/u/16612504?v=4)](https://github.com/TheDoctor0 "TheDoctor0 (13 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (2 commits)")

---

Tags

laravelstubsartisanlaravel-stubsthedoctor0

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thedoctor0-laravel-stubs/health.svg)

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

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17930.8k](/packages/markwalet-nova-modal-response)[ronasit/laravel-helpers

Provided helpers function and some helper class.

2087.0k31](/packages/ronasit-laravel-helpers)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1422.0k5](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.8k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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