/** * Create the flow in the database * @param $command * @return static */ public function handle($command) { $flow = Flow::create((array) $command); event(new FlowWasCreated($flow)); return $flow; }