src/Toastr.php
public function notifications(): array
    {
        return array_map(
            function ($n) {
                return $this->toastr($n['type'], $n['message'], $n['title'], $n['options']);
            },
            $this->session->get(self::TOASTR_NOTIFICATIONS, [])
        );
    }
public function notifications(): array
    {
        return array_map(
            function ($n) {
                return $this->toastr($n['type'], $n['message'], $n['title'], $n['options']);
            },
            $this->session->get(self::TOASTR_NOTIFICATIONS, [])
        );
    }
public function notifications ( ) : array { return array_map ( function ( $ n ) { return $ this -> toastr ( $ n [ 'type' ] , $ n [ 'message' ] , $ n [ 'title' ] , $ n [ 'options' ] ) ; } , $ this -> session -> get ( self :: TOASTR_NOTIFICATIONS , [ ] ) ) ; }
map over all notifications and create an array of toastrs.

@return array
map over all notifications and create an array of toastrs .