https://github.com/softmedialabs/laravel-global-scope
Laravel generate global scope from artisan
https://github.com/softmedialabs/laravel-global-scope
artisan backend command-line framework laravel
Last synced: 6 months ago
JSON representation
Laravel generate global scope from artisan
- Host: GitHub
- URL: https://github.com/softmedialabs/laravel-global-scope
- Owner: softmedialabs
- License: mit
- Created: 2020-07-07T06:54:02.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-08T02:58:21.000Z (almost 6 years ago)
- Last Synced: 2024-04-21T01:40:47.302Z (about 2 years ago)
- Topics: artisan, backend, command-line, framework, laravel
- Language: PHP
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Global Scope
This package adds a handful of global scope commands to Artisan in your Laravel project. Generate scope files to allow you to constraints to all queries for a given model.
## Installation
Use the package manager [composer](https://getcomposer.org/) to install this packages
```bash
composer require softmedialabs/laravel-global-scope
```
## Usage
```bash
php artisan make:scope AgeScope
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
```softmedialabs/laravel-global-scope``` is licenced under the MIT License (MIT). Please see the [license file](https://github.com/softmedialabs/laravel-global-scope/blob/master/LICENSE) for more information.