clickbar/laravel-stubs

Opinionated Laravel stubs
95,186
Install
composer require clickbar/laravel-stubs
Latest Version:4.0.0
PHP:^8.2
License:MIT
Last Updated:Mar 12, 2024
Links: GitHub  ·  Packagist
Maintainer: studnitz

Opinionated Laravel stubs

Latest Version on Packagist GitHub Tests Action Status Total Downloads

This repo contains opinionated versions of the Laravel stubs. The most notable changes are:

  • none of the model attributes are guarded
  • model timestamps cast to immutable_datetime
  • use return type hints where possible
  • most docblocks have been removed

Installation

You can install the package via composer:

composer require clickbar/laravel-stubs --dev

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

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

Usage

You can publish the stubs using this command:

php artisan clickbar-stub:publish

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

spatie/laravel-stubs

Opinionated Laravel stubs

752,747 252
clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in La...

1,121,063 443
mltstephane/laravel-stubs

Opinionated Laravel stubs

409 0
rawilk/laravel-stubs

Opinionated modifications to the default Laravel stubs.

3,735 1