2017 © Pedro Peláez
 

library laravel-sugar

image

itc/laravel-sugar

  • Wednesday, August 30, 2017
  • by rich-choy
  • Repository
  • 4 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

itc/laravel-sugar

build status badge here code coverage badge here code quality badge here, (*1)

This is a thoroughly-tested collection of components and traits with no external dependencies. It reduces boilerplate code while adhering to SOLID design principles. Its goal is to make working with Laravel sweeter than it already is., (*2)

Features

Model caching

Add caching behavior to any Laravel model., (*3)

use Illuminate\Database\Eloquent\Model;
use ITC\Laravel\Sugar\Models\Behaviors\Caching as ModelCachingBehavior;

class Car extends Model
{
    use ModelCachingBehavior;
}

$car = Car::findOrFail(123);

// cache the model instance
$car->remember();

// retrieve the cached model instance
$car = Car::recall(123);

// uncache the model instance
$car->forget();

Requirements

  • PHP 7.0 or later
  • Laravel 5.3 or later

Installation

This is a Composer package. Installation is trivial!, (*4)

composer require itc/laravel-sugar

Getting Help

License

MIT, (*5)

The Versions

30/08 2017

dev-develop

dev-develop

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rich Choy

30/08 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rich Choy

30/08 2017
22/03 2017

0.2.0

0.2.0.0

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Rich Choy

22/03 2017

0.1.0

0.1.0.0

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Rich Choy