2017 © Pedro Peláez
 

library laravel-finite

Service provider for finite

image

am2studio/laravel-finite

Service provider for finite

  • Wednesday, May 18, 2016
  • by msamec
  • Repository
  • 3 Watchers
  • 1 Stars
  • 2,119 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 4 % Grown

The README.md

Laravel-Finite

Latest Version on Packagist ![Software License][ico-license] ![Total Downloads][ico-downloads], (*1)

Install

Via Composer, (*2)

``` bash $ composer require AM2studio/Laravel-Finite, (*3)


in ```config/app.php``` under ```'providers'``` add ```php AM2Studio\LaravelFinite\LaravelFiniteServiceProvider::class,

under 'alias' add, (*4)

'Finite'    => AM2Studio\LaravelFinite\FiniteFacade::class,

publish migration files and run migration, (*5)

php artisan vendor:publish --provider="AM2Studio\LaravelFinite\LaravelFiniteServiceProvider" --tag="migrations"
php artisan migrate

Usage

In models you want to use it add namespace, (*6)

use AM2Studio\LaravelFinite\Traits\LaravelFiniteTrait;

and then use trait, (*7)

use LaravelFiniteTrait;

php Finite::can($eloquentModelObject, 'finite transition'); Finite::apply($eloquentModelObject, 'finite transition'); Finite::getName($eloquentModelObject));, (*8)

It is recommended that you use Relation::morphTo([]) because that way if you change the namespace of your model the records in DB won't break., (*9)

Change log

Please see CHANGELOG for more information what has changed recently., (*10)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*11)

Credits

License

The MIT License (MIT). Please see License File for more information., (*12)

The Versions

18/05 2016

dev-master

9999999-dev https://github.com/AM2studio/Laravel-Finite

Service provider for finite

  Sources   Download

MIT

The Requires

 

am2studio finite

03/02 2016

1.0.2

1.0.2.0 https://github.com/AM2studio/Laravel-Finite

Service provider for finite

  Sources   Download

MIT

The Requires

 

am2studio finite

21/01 2016

1.0.1

1.0.1.0 https://github.com/AM2studio/Laravel-Finite

Service provider for finite

  Sources   Download

MIT

The Requires

 

am2studio finite

21/01 2016

1.0.0

1.0.0.0 https://github.com/AM2studio/Laravel-Finite

Service provider for finite

  Sources   Download

MIT

The Requires

 

am2studio finite