classes/Routing/ControllerTrait.php
protected function flashMessages($messages)
	{
		$flashBag = $this->getSession()
			->getFlashBag();

		foreach ((array) $messages as $message) {
			$flashBag->add('_messages', $message);
		}
	}
protected function flashMessages($messages)
	{
		$flashBag = $this->getSession()
			->getFlashBag();

		foreach ((array) $messages as $message) {
			$flashBag->add('_messages', $message);
		}
	}
Flash an array of messages to the session.

@param  array  $messages

@return void