public static function alert($type, $transKey, $transCount = 1, $transParameters = [])
    {
        $alerts = [];
        if (Session::has('alerts')) {
            $alerts = Session::get('alerts');
        }

        $message = trans_choice("forum::{$transKey}", $transCount, $transParameters);

        array_push($alerts, compact('type', 'message'));

        Session::flash('alerts', $alerts);
    }
public static function alert($type, $transKey, $transCount = 1, $transParameters = [])
    {
        $alerts = [];
        if (Session::has('alerts')) {
            $alerts = Session::get('alerts');
        }

        $message = trans_choice("forum::{$transKey}", $transCount, $transParameters);

        array_push($alerts, compact('type', 'message'));

        Session::flash('alerts', $alerts);
    }
public static function alert ( $ type , $ transKey , $ transCount = 1 , $ transParameters = [ ] ) { $ alerts = [ ] ; if ( Session :: has ( 'alerts' ) ) { $ alerts = Session :: get ( 'alerts' ) ; } $ message = trans_choice ( "forum::{$transKey}" , $ transCount , $ transParameters ) ; array_push ( $ alerts , compact ( 'type' , 'message' ) ) ; Session :: flash ( 'alerts' , $ alerts ) ; }
Process an alert message to display to the user.

@param  string  $type
@param  string  $transKey
@param  string  $transCount
@return void
Process an alert message to display to the user .