for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Imanghafoori\HeyMan\Plugins\WatchingStrategies\EloquentModels;
final class EloquentSituations
{
protected $methods = [
'whenYouFetch' => 'retrieved',
'whenYouCreate' => 'creating',
'whenYouUpdate' => 'updating',
'whenYouSave' => 'saving',
'whenYouDelete' => 'deleting',
];
/**
* @param $method
* @param $model
*
* @return array
*/
public function normalize($method, $model): array
return [$model, $this->methods[$method]];
}