app/Http/Flash.php
public function create($title, $message, $level = 'info', $key = 'flash_message')
    {
        $timer = $this->timer;

        session()->flash($key, compact('title', 'message', 'level', 'info', 'timer'));
    }
public function create($title, $message, $level = 'info', $key = 'flash_message')
    {
        $timer = $this->timer;

        session()->flash($key, compact('title', 'message', 'level', 'info', 'timer'));
    }
Generates a new session flash message.

@param string $title
@param string $message
@param string $level
@param string $key