2017 © Pedro Peláez
 

library limited-trait

image

xjchen/limited-trait

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel Global Scope for Limiting

This is a trait used for eloquent global scope. It can be used to add where condition to the query., (*1)

Installation

Add xjchen/limited-trait as a requirement to composer.json:, (*2)

{
    "require": {
        "xjchen/limited-trait": "dev-master"
    }
}

Update your packages with composer update or install with composer install., (*3)

You can also add the package using composer require xjchen/limited-trait and later specifying the version you want (for now, dev-master is your best bet)., (*4)

Usage

  1. add use LimitedTrait in your model
  2. fill protected $limitedColumns = ['limited_column1', 'limited_column2']
  3. add method getLimitedLimitedColumn1 and getLimitedLimitedColumns2

The Versions

31/01 2015

dev-master

9999999-dev

  Sources   Download

The Requires

 

by xjchen

31/01 2015

v0.0.1

0.0.1.0

  Sources   Download

The Requires

 

by xjchen