An open API service indexing awesome lists of open source software.

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

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.