/** * Clear the list of booted models so they will be re-booted. * * @return void */ public static function clearBootedModels() { static::$booted = []; static::$globalScopes = []; }
public static function clearBootedModels() { static::$booted = array(); static::$globalScopes = array(); }