Looking to hire Laravel developers? Try LaraJobs

laravel-stubs maintained by zepfietje

Description
Clean versions of the stubs shipped with Laravel.
Author
Last update
2023/01/16 12:20 (dev-main)
License
Downloads
6 108
Tags

Comments
comments powered by Disqus

Packagist Version Packagist Downloads

Laravel Stubs

This package contains clean versions of the stubs shipped with Laravel.
Most notably:

  • Type declarations are used instead of DocBlocks.
  • Controllers don't extend a base controller.

Installation

  1. Install this package:
    composer require zepfietje/laravel-stubs --dev
    
  2. Add the following hook to the scripts in composer.json to keep your stubs in sync with updates to this package:
    "post-update-cmd": [
        "@php artisan stub:publish --force"
    ]
    
  3. Publish the stubs:
    php artisan stub:publish