Back

Just released an updated version of Larakeep. It allows to register Keepers and perform tasks on attributes or run tasks on them, in a similar way to actions. It's a way to keep models and observers more organized.

// Single attribute processing
$user->process('attr')->save();

// Multiple attribute processing
$user->process(['attr', 'search_text'])->save();

// With parameters
$user->processWith('attr', ['arg' => 'value'])->save();

// Custom task
$user->processTask('taskName', 'search_text')->save();

// Custom task with parameters
$user->processTask('taskName', 'search_text', ['arg' => 'value'])->save();


github.com/edulazaro/larakeep

74

0 / 1000