Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spatie/laravel-stubs
The default Laravel stubs modified to our liking
https://github.com/spatie/laravel-stubs
development laravel php stubs
Last synced: 1 day ago
JSON representation
The default Laravel stubs modified to our liking
- Host: GitHub
- URL: https://github.com/spatie/laravel-stubs
- Owner: spatie
- License: mit
- Created: 2020-03-21T21:57:52.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-09-18T14:50:53.000Z (3 months ago)
- Last Synced: 2024-12-22T08:02:38.639Z (9 days ago)
- Topics: development, laravel, php, stubs
- Language: PHP
- Homepage: https://spatie.be/open-source
- Size: 95.7 KB
- Stars: 243
- Watchers: 4
- Forks: 40
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Opinionated Laravel stubs
[![Latest Version on Packagist](https://img.shields.io/packagist/v/spatie/laravel-stubs.svg?style=flat-square)](https://packagist.org/packages/spatie/laravel-stubs)
[![run-tests](https://github.com/spatie/laravel-stubs/actions/workflows/run-tests.yml/badge.svg)](https://github.com/spatie/laravel-stubs/actions/workflows/run-tests.yml)
[![Total Downloads](https://img.shields.io/packagist/dt/spatie/laravel-stubs.svg?style=flat-square)](https://packagist.org/packages/spatie/laravel-stubs)This repo contains opinionated versions of the Laravel stubs. The most notable changes are:
- migrations don't have a `down` function
- controllers don't extend a base controller
- none of the model attributes are guarded
- use return type hints where possible
- most docblocks have been removed## Support us
[](https://spatie.be/github-ad-click/laravel-stubs)
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
## Exploring laravel-stubs
In this [video on YouTube](https://www.youtube.com/watch?v=I-y-VSOL93I), Povilas Korop explores our package.
## Installation
You can install the package via composer:
```bash
composer require spatie/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:
```json
"scripts": {
"post-update-cmd": [
"@php artisan spatie-stub:publish --force"
]
}
```## Usage
You can publish the stubs using this command:
```bash
php artisan spatie-stub:publish
```## Testing
``` bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.
## Security
If you've found a bug regarding security please mail [[email protected]](mailto:[email protected]) instead of using the issue tracker.
## Credits
- [Freek Van der Herten](https://github.com/freekmurze)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.