original_string: protected function getRecipient()
      {
          if (Input::get('test')) {
              return user();
          }
          $route = app('router')->getRoutes()->match(app('request')->create(url()->previous()));
          return (in_array('users', $route->parameterNames()) && $uid   = $route->parameter('users')) ? user()->newQuery()->findOrFail($uid) : user();
      }
code: protected function getRecipient()
      {
          if (Input::get('test')) {
              return user();
          }
          $route = app('router')->getRoutes()->match(app('request')->create(url()->previous()));
          return (in_array('users', $route->parameterNames()) && $uid   = $route->parameter('users')) ? user()->newQuery()->findOrFail($uid) : user();
      }
code_tokens: protected function getRecipient ( ) { if ( Input :: get ( 'test' ) ) { return user ( ) ; } $ route = app ( 'router' ) -> getRoutes ( ) -> match ( app ( 'request' ) -> create ( url ( ) -> previous ( ) ) ) ; return ( in_array ( 'users' , $ route -> parameterNames ( ) ) && $ uid = $ route -> parameter ( 'users' ) ) ? user ( ) -> newQuery ( ) -> findOrFail ( $ uid ) : user ( ) ; }
docstring: Gets recipient for notification
  
  @return \Illuminate\Database\Eloquent\Model
docstring_tokens: Gets recipient for notification