for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Modules\Recipe\Events;
use Modules\Media\Contracts\StoringMedia;
class RecipeWasCreated implements StoringMedia
{
/**
* @var
*/
private $recipe;
private $data;
public function __construct($recipe, $data)
$this->recipe = $recipe;
$this->data = $data;
}
* Return the entity
* @return \Illuminate\Database\Eloquent\Model
public function getEntity()
return $this->recipe;
* Return the ALL data sent
* @return array
public function getSubmissionData()
return $this->data;