2017 © Pedro Peláez
 

library lara-find-event

Lara findEvent is a small library that enabled after find event for laravel model

image

haegemon/lara-find-event

Lara findEvent is a small library that enabled after find event for laravel model

  • Monday, February 12, 2018
  • by haegemon
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

LaraFindEvent

Small library that enabled after find event at laravel, (*1)

Installation

Require this package in your composer.json file:, (*2)

"haegemon/lara-find-events": "dev-master", (*3)

...then run composer update to download the package to your vendor directory., (*4)

Usage

The feature is exposed through a trait that add new functionality to object. Event handler can be describe any standart way. For example we could create a Photos model like this:, (*5)


use Eloquent\LaraFindEvents\LaraFindEvents as LaraFindEvents; class Photo extends Eloquent { use LaraFindEvents; public static function boot() { parent::boot(); static::found(function (WildPlant $wildPlant) { var_dump('Iamfound', $wildPlant->id); return true; }); } }

The Versions

12/02 2018

dev-master

9999999-dev

Lara findEvent is a small library that enabled after find event for laravel model

  Sources   Download

GNU GPL-2.0-or-later

The Requires

 

by Avatar haegemon