original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Process an alert message to display to the user.
  
  @param  string  $type
  @param  string  $transKey
  @param  string  $transCount
  @return void
docstring_tokens: Process an alert message to display to the user .