2017 © Pedro Peláez
 

library laravel-scope-publish

Scope for field 'publish' (bool)

image

kharanenka/laravel-scope-publish

Scope for field 'publish' (bool)

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

The README.md

Trait PublishField

You can use trait in your models with "publish" field (bool), (*1)

Installation

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


"kharanenka/laravel-scope-publish": "1.0.*"

Usage



class MyModel extend Model { use Kharanenka\Scope\PublishField; ... } $obElement = MyModel::published()->get(); $obElement = MyModel::getPublished()->get(); $obElement = MyModel::getByPublishedStart('2016-06-02', '>=')->get(); $obElement = MyModel::getByPublishedStop('2016-06-02', '<')->get();

The Versions

12/11 2016

dev-master

9999999-dev

Scope for field 'publish' (bool)

  Sources   Download

GPL-3.0

The Requires

  • php >=5.6

 

by Avatar Andrey Kharanenka

laravel php model field publish scope octobercms

12/11 2016

1.0.0

1.0.0.0

Scope for field 'publish' (bool)

  Sources   Download

GPL-3.0

The Requires

  • php >=5.6

 

by Avatar Andrey Kharanenka

laravel php model field publish scope octobercms