PHPackages                             nastuzzi-samy/laravel-model-stages - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. nastuzzi-samy/laravel-model-stages

ActiveLibrary[Database &amp; ORM](/categories/database)

nastuzzi-samy/laravel-model-stages
==================================

Add stage scopes to models with parents

1.2.1(7y ago)02.7kMITPHPPHP &gt;=7.1.3

Since Aug 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/NastuzziSamy/laravel-model-stages)[ Packagist](https://packagist.org/packages/nastuzzi-samy/laravel-model-stages)[ RSS](/packages/nastuzzi-samy-laravel-model-stages/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (6)Used By (0)

laravel-model-stages
====================

[](#laravel-model-stages)

A Laravel package that add some stage scopes on models

Installation
------------

[](#installation)

### With composer

[](#with-composer)

```
composer require NastuzziSamy/laravel-model-stages
```

Docs
----

[](#docs)

This trait add multiple scopes into model class. They are all usable directly by calling them (withtout the "scope" behind) when querying for items. It is usefull for model with parent and children relation in itselft

It is also possible to customize this property:

- `parent_id` to define the parental column

Usage
-----

[](#usage)

In your targeted model:

```
