Download the PHP package daniel-de-wit/laravel-model-active without Composer
On this page you can find all versions of the php package daniel-de-wit/laravel-model-active. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download daniel-de-wit/laravel-model-active
More information about daniel-de-wit/laravel-model-active
Files in daniel-de-wit/laravel-model-active
Download daniel-de-wit/laravel-model-active
More information about daniel-de-wit/laravel-model-active
Files in daniel-de-wit/laravel-model-active
Vendor daniel-de-wit
Package laravel-model-active
Short Description Simple trait for scoping Eloquent models by 'active' boolean
License MIT
Homepage https://github.com/daniel-de-wit/laravel-model-active
Package laravel-model-active
Short Description Simple trait for scoping Eloquent models by 'active' boolean
License MIT
Homepage https://github.com/daniel-de-wit/laravel-model-active
Please rate this library. Is it a good library?
Informations about the package laravel-model-active
laravel-model-active
A trait for Laravel to only pull models marked as "active". When the trait is applied to a model, the queries will, by default, only find rows for that model where the active column has a value of 1.
Requirements
- Laravel ^5.2
Installation
Add package to composer.json
composer require daniel-de-wit/laravel-model-active
Usage
Add active
boolean to Eloquent Model:
Add the Active
trait to the model:
Removing Active Scope
If you would like to remove the active scope for a given query, you may use the withoutGlobalScope method:
All versions of laravel-model-active with dependencies
PHP Build Version
Package Version
No informations.
The package daniel-de-wit/laravel-model-active contains the following files
Loading the files please wait ....