<?php

namespace FluxBB\View;

use Illuminate\Contracts\View\View;
use Symfony\Component\HttpFoundation\Session\SessionInterface;

class AlertsComposer
{
    protected $session;


    public function __construct(SessionInterface $session)
    {
        $this->session = $session;
    }

    public function compose(View $view)
    {
        if ($this->session->has('message')) {
            $view->with('message', $this->session->get('message'));
        }
    }
}

<?php

namespace FluxBB\View;

use Illuminate\Contracts\View\View;
use Symfony\Component\HttpFoundation\Session\SessionInterface;

class AlertsComposer
{
    protected $session;


    public function __construct(SessionInterface $session)
    {
        $this->session = $session;
    }

    public function compose(View $view)
    {
        if ($this->session->has('fluxbb.message')) {
            $view->with('message', $this->session->get('fluxbb.message'));
        }
    }
}

Use correct key for retrieving redirection messages from the session.
Use correct key for retrieving redirection messages from the session.
