bypassCheckpoints() public method

Pass a closure to Sentinel to bypass checkpoints.
public bypassCheckpoints ( Closure $callback, array $checkpoints = [] ) : mixed
$callback Closure
$checkpoints array
return mixed
Esempio n. 1
0
 /**
  * Pass a closure to Sentinel to bypass checkpoints.
  *
  * @param  \Closure $callback
  * @param  array   $checkpoints
  *
  * @return mixed
  */
 public function bypassCheckpoints(\Closure $callback, $checkpoints = [])
 {
     return $this->sentinel->bypassCheckpoints($callback, $checkpoints);
 }
Esempio n. 2
0
 /**
  * Pass a closure to Sentinel to bypass checkpoints.
  *
  * @param \Closure $callback
  * @param array $checkpoints
  * @return mixed 
  * @static 
  */
 public static function bypassCheckpoints($callback, $checkpoints = array())
 {
     return \Cartalyst\Sentinel\Sentinel::bypassCheckpoints($callback, $checkpoints);
 }