src/Flash.php
private function flash($type, $message)
	{
		// Determine the Current Session Flash Type
		$flash = Session::has($type) ? Session::get($type) : array();

		// Prevent Duplicate Messages from Appearing
		if(!in_array($message, $flash))
			$flash[] = $message; // Add the Message to the Flashes

		// Flash the Message
		Session::flash($type, $flash);
	}
private function flash($type, $message)
	{
		// Determine the Current Session Flash Type
		$flash = Session::has($type) ? Session::get($type) : array();

		// Prevent Duplicate Messages from Appearing
		if(!in_array($message, $flash))
			$flash[] = $message; // Add the Message to the Flashes

		// Flash the Message
		Session::flash($type, $flash);
	}
private function flash ( $ type , $ message ) { // Determine the Current Session Flash Type $ flash = Session :: has ( $ type ) ? Session :: get ( $ type ) : array ( ) ; // Prevent Duplicate Messages from Appearing if ( ! in_array ( $ message , $ flash ) ) $ flash [ ] = $ message ; // Add the Message to the Flashes // Flash the Message Session :: flash ( $ type , $ flash ) ; }
Flashes a Message to the Session.

@param  string  $type 	 The Type of Message to Flash.
@param  string  $message  The Message to Flash.

@return void
Flashes a Message to the Session .