2017 © Pedro Peláez
 

library laravel-scope-user-belongs-to

Scope for field 'user_id' (int)

image

kharanenka/laravel-scope-user-belongs-to

Scope for field 'user_id' (int)

  • Monday, November 14, 2016
  • by Andrey Kharanenka
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,097 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 28 % Grown

The README.md

Trait UserBelongsTo

You can use trait in your models with "user_id" field (int), (*1)

Installation

Require this package in your composer.json and update composer., (*2)


"kharanenka/laravel-scope-user-belongs-to": "1.0.*"

Usage


class MyModel extend Model { use Kharanenka\Scope\UserBelongsTo; ... } $obElement = MyModel::getByUser(10)->first();

The Versions

14/11 2016

dev-master

9999999-dev

Scope for field 'user_id' (int)

  Sources   Download

GPL-3.0

The Requires

  • php >=5.6

 

by Avatar Andrey Kharanenka

laravel php model field scope octobercms user_id

14/11 2016

1.0.0

1.0.0.0

Scope for field 'user_id' (int)

  Sources   Download

GPL-3.0

The Requires

  • php >=5.6

 

by Avatar Andrey Kharanenka

laravel php model field scope octobercms user_id