session() global method and $session->get() method support for dot notation when accessing array elements. but getFlashdata() does not support for that.
Its very convenient if we can use
getFlashdata() method like
PHP Code:
$session->getFlashdata('errors.password')
instead
PHP Code:
$session->getFlashdata('errors')['password']